🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #3143

Resource Question

#3143
From: Jim Howe
Date: Wed, 22 May 1991 19:27
15 lines
1294 bytes
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         
Technical Details
Message-ID: <1991May22.192749.11337@terminator.cc.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!zaphod.mps.ohio-state.edu!wuarchive!gumby!umich!terminator!usenet

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!olivea!samsung!zaphod.mps.ohio-state.edu!wuarchive!gumby!umich!terminator!usenet
From: jwh@bodwin.ifs.umich.edu (Jim Howe)
Newsgroups: comp.os.os2.programmer
Subject: Resource Question
Message-ID: <1991May22.192749.11337@terminator.cc.umich.edu>
Date: 22 May 91 19:27:49 GMT
Sender: usenet@terminator.cc.umich.edu (usenet news)
Distribution: na
Organization: University of Michigan, IFS Project
Lines: 15