1. Using Translator to create DLL ?
- Posted by Bernie Ryan <xotron at bluefrog.com> Jul 30, 2006
- 505 views
- Last edited Jul 31, 2006
Is there someway to export the LibMain and WEP functions so LibMain can initialize and do some processes when dll is loaded and WEP can clean-up and close any open files ? Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
2. Re: Using Translator to create DLL ?
- Posted by Juergen Luethje <j.lue at gmx.de> Jul 31, 2006
- 493 views
Bernie Ryan wrote: > Is there someway to export the LibMain and WEP functions > so LibMain can initialize and do some processes when dll > is loaded and WEP can clean-up and close any open files ? Unfortunately, I can't exactly answer your question. However, as far as I can see, initialization is possible without exporting the LibMain function: | When you call open_dll(), any top-level Euphoria statements in the .dll | or .so will be executed automatically, just like a normal program. This | gives the library a chance to initialize its data structures prior to | the first call to a library routine. From <http://rapideuphoria.com/e2c.htm> And when an Euphoria program ends, all open files are closed automatically. Maybe this info helps a little. Regards, Juergen -- Please excuse my flawed English. My native language is Euphoria.