Re: WIN32 DLL Question

new topic     » goto parent     » topic index » view thread      » older message » newer message
jeremy said...
jimcbrown said...

I am not sure how to do initialization on dll load. You can do that by manually editing the generated C, of course.

Maybe in 4.1 we should plan on having a method that is called when the DLL is loaded? an Init() procedure/function.

Jeremy

I looked at this again, and it turns out you simply leave any code you want to run on dll load at the top level, outside of any function. Any top level code is executed when the dll is loaded.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu