[futurebasic] Resource files

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 1999 : Group Archive : Group : All Groups

From: "Phil Yates" <pyates@...>
Date: Fri, 30 Apr 1999 08:44:27 +0100
Lucy Said :

> LOCAL FN loadNamedSound(soundname$)
>   tmphndl& = FN GETNAMEDRESOURCE(_"snd ",soundname$)
>   LONG IF tmphndl&
>     err = FN HLOCK(tmphndl&)
>   END IF
> END FN = tmphndl&
>
I've recently been doing a lot of work with multiple Resource files, and
have made major use of the single resource layer GET1RESOURCE,
GET1NAMEDRESOURCE, etc. structures. It has transformed the way I work with
Resources, since I can absolutely control the Resource structure. Just
wonder why I never used them much before. Incompetence, probably.

Re Debugging. Although this isn't always the case, remember that most
problems aren't so big or so difficult that they can't be run away from.

Find another and simpler way of doing something, and it'll save you days
(weeks ?) of head-scratching. It'll probably also make your code easier to
understand, too.

Phil.