This is the mail archive of the
mailing list for the pthreas-win32 project.
Re: Static Library Initialization (again?)
Quoting Brian Cole <email@example.com>:
Why can't DllMain be used for this? MSDN seems to imply that DllMain
is called for static libraries
"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.