Different DLL wrapping question(s)

new topic     » topic index » view thread      » older message » newer message

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()? smile

BTW I hope Euphoria's open() returns the actual OS file number?  In other
functions someone kindly provided file descriptor versions as well...

ags

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu