Author Topic: Building a DLL - DllMain not being Called  (Read 5359 times)

Offline BigAngryDog

  • Multiple posting newcomer
  • *
  • Posts: 75
    • BigAngryDog.com
Building a DLL - DllMain not being Called
« on: March 14, 2006, 02:11:43 am »
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.com

Offline BigAngryDog

  • Multiple posting newcomer
  • *
  • Posts: 75
    • BigAngryDog.com
Re: Building a DLL - DllMain not being Called
« Reply #1 on: March 14, 2006, 02:14:49 am »
Don't matter. Got it.

Had saved the main file as cpp. Therefore, I needed:

Code: [Select]
extern "C" {
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
...
BigAngryDog.com