Path: utzoo!attcan!uunet!mcvax!kth!sunic!maxim!prc From: prc@erbe.se (Robert Claeson) Newsgroups: comp.windows.ms Subject: Re: FindResource doesn't find resources Summary: MS Documentation Message-ID: <695@maxim.erbe.se> Date: 21 May 89 08:53:02 GMT References: <685@maxim.erbe.se> <106580034@hpcvlx.HP.COM> Reply-To: prc@erbe.se (Robert Claeson) Organization: Hall of Fame Lines: 25 I wrote: > I'm trying to use FindResource to find a string resource. > Then I call SizeofResource to get the size of the resource. > Using it, I do a LocalAlloc to allocate a buffer. > Finally, I read the string into the buffer using LoadString. To which bturner@hpcvlx.HP.COM (Bill Turner) in article <106580034@hpcvlx.HP.COM> responded: >Ah, the problem is that string resources aren't like the other >resources. All other resources are stored individually accessable, >but string resources are packed together into 16 resource segments. > >I believe that what is done is that all strings are packed into the >segment based on their string ID modulo 16. ..... Microsoft has once more had me spending expensive time on an unsolvable problem, just because they didn't document that FindResource can't be used with string resources. Argh! -- Robert Claeson E-mail: rclaeson@erbe.se ERBE DATA AB