I have the following problem with my dll: I have both LoadDLL and UnloadDLL like in the mIRC help file. Both functions are exported in my definitions source file with the lines:
But for some reason, LoadDLL (and UnloadDLL) are not called by mIRC. I can make a call to DLL_ENTRY without a problem and it does what it should do. It seems that mIRC is somehow not seeing the load and unload functions or refusing to call them.
Does anyone have any experience with this? What are the possible pitfalls that I should look out for? I should perhaps mention that the dll is written in MFC, but I don't see how that can be an influence. And I'm using the latest version of mIRC (6.03).