1. Getting structs from DLLs
- Posted by Jeremy Peterson <ptl99 at hotmail.com> Nov 22, 2005
- 442 views
- Last edited Nov 23, 2005
Could someone give me an example of taking a returned C struct from a dll function? Later, Jeremy Peterson Life is real, games are for fun.
2. Re: Getting structs from DLLs
- Posted by petelomax at fastmail.fm Nov 24, 2005
- 442 views
On Tue, 22 Nov 2005 11:58:34 -0800, "Jeremy Peterson" > Could someone give me an example of taking a returned C struct from a > dll function? I can't think of an example that does that. Many routines pass a struct they have allocated to a c_func and then peek results from that, eg getWindowRect. Others deliberately call the c_func with a zero-length buffer to find out how big it is, then allocate that space, call the func to fill it, peek stuff, and deallocate the buffer (eg getDriveStrings) Pete -- petelomax at fastmail.fm -- http://www.fastmail.fm - Access your email from home and the web
3. Re: Getting structs from DLLs
- Posted by Evan Marshall <1evan at sbcglobal.net> Nov 24, 2005
- 424 views
Jeremy Peterson wrote: > > Could someone give me an example of taking a returned C struct from a > dll function? > > Later, > Jeremy Peterson > Life is real, games are for fun. Could you give an example of the function to which you are referring?