Different DLL wrapping question(s)
- Posted by ags <eu at 531pi.co.nz> Oct 24, 2005
- 488 views
Hi All I'm about 70% through wrapping ming.dll (the SWF output library ("gee I hope that hasn't been done already" :)) and am a bit stuck on what to do about FILE * pointers. There is only one place so far where that needs to be done (loadSWFFontFromFile) but that's a fairly important routine IMHO. So what to the rest of you dll wrapping guru's recommend? The exact C header is: SWFFont loadSWFFontFromFile(FILE *file); Should I allocate a chunk of memory sizeof(struct FILE) and poke the file number into it? Or would that mess with the whole purpose of the FILE struct? Should I write an fopen.dll and wrap fopen()? BTW I hope Euphoria's open() returns the actual OS file number? In other functions someone kindly provided file descriptor versions as well... ags