Re: WIN32 DLL Question
- Posted by jimcbrown (admin) Nov 14, 2010
- 1215 views
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.