User forums > Using Code::Blocks
Building a DLL - DllMain not being Called
(1/1)
BigAngryDog:
Hi there,
I've built a DLL with C::B and am loading it into an app built with BCB.
However, the "BOOL WINAPI DllMain" function does not seem to be called in the DLL when it is loaded.
Is there anyway to rectify this? Could I be doing something wrong?
Thanks
BigAngryDog:
Don't matter. Got it.
Had saved the main file as cpp. Therefore, I needed:
--- Code: ---extern "C" {
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
...
--- End code ---
Navigation
[0] Message Index
Go to full version