[futurebasic] Re: [Q] HLOCK vs SetResAttrs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 1998 : Group Archive : Group : All Groups

From: Charlie Dickman <charlied@...>
Date: Mon, 12 Jan 1998 20:18:14 -0500
>I was looking at SETRESATTRS today and wondering if perhaps with
>resources it should be done that way instead.
>
>In other words, for Handles you create using NEWHANDLE, you use
>HLOCK/HUNLOCK. But for resources you read in (GETRESOURCE) you should use
>SETRESATTRS.
>
>So which is the right way? Or does it matter?

The Think Reference says that SetResAttrs is only for resource managers
like ResEdit and that "it is a rare application" that needs to call it.

Charlie Dickman
charlied@...