1. Using Translator to create DLL ?

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

new topic     » topic index » view message » categorize

2. Re: Using Translator to create DLL ?

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.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu