[comp.os.os2.programmer] Resource Question

jwh@bodwin.ifs.umich.edu (Jim Howe) (05/23/91)

I have found a situation where I would like to make use of
a user defined resource.  I would like to be able to store
a string of binary data as a resource and have my application
be able to retrieve it from a DLL.  I have no problem getting
the data into the DLL as a user defined resource but I have
a question about getting it out.  The major problem I have
is that the length of the resource can vary.  I don't want
to hard wire any values into my application.  If I use the
DosGetResource2 function to retrieve the resource I get a pointer
to the resource data.  Is there a way for me to determine the
size of the resource?

James W. Howe			   internet: jwh@citi.umich.edu
University of Michigan             uucp:     uunet!mailrus!citi.umich.edu!jwh
Ann Arbor, MI   48103-4943