Static Library Initialization (again?)

John E. Bossom drifting@pioneerwireless.ca
Wed Jun 18 14:09:00 GMT 2008


Quoting Brian Cole <coleb2@gmail.com>:

> Why can't DllMain be used for this? MSDN seems to imply that DllMain
> is called for static libraries
> (http://msdn.microsoft.com/en-us/library/ms682583.aspx):
> "The lpReserved parameter indicates whether the DLL is being loaded
> statically or dynamically."

You can statically link against the implib of a DLL or dynamically load
the DLL at run time. Regardless a DLL is a DLL is a DLL. That is
what they mean in MSDN... DllMain only exists for DLLs not static libraries.




More information about the Pthreads-win32 mailing list