How to specify dll onload function for mingw32?

Posted by aking1012 on Stack Overflow See other posts from Stack Overflow or by aking1012
Published on 2011-06-21T19:55:56Z Indexed on 2011/06/22 0:22 UTC
Read the original article Hit count: 243

Filed under:
|
|
|

I can compile DLLs properly using mingw and do the exports/imports stuff. What I am looking for is defining the dll onload function properly as you would in MS VC products. Google didn't turn up anything. Anyone have any ideas or a link to a tutorial?

It was suggested that this code snippet be added to the question:

  
extern "C" DLL_EXPORT BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD Reason, LPVOID LPV)

And yes, this is what I am trying to do, but with mingw.

© Stack Overflow or respective owner

Related posts about dll

Related posts about mingw