News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Building a DLL - DllMain not being Called

Started by BigAngryDog, March 14, 2006, 02:11:43 AM

Previous topic - Next topic

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
[url="//bigangrydog.com"]BigAngryDog.com[/url]

BigAngryDog

Don't matter. Got it.

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


extern "C" {
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
...
[url="//bigangrydog.com"]BigAngryDog.com[/url]