Hello,


I'm trying to make a small DLL for mIRC, and I'm in a situation where I need a handler for my dll (ModuleHandle of type HMODULE). In a generic DLL application this is passed to DllMain(), but since the structure of an mIRC DLL is different I have no access to that.

Also, I tried using LoadLibrary() but I had no luck in getting a Module Handle (to my dll). The reason why I need a Module Handle is that I have some resources (dialogs), and when I call these dialogs (with DialogBox()) it tries to open mIRC's dialogs rather the ones defined in my resource file, it seems it operates on the parent process (mIRC in this case) unless I provide a specific ModuleHandle (well, in this case I'm trying to get the Module Handle of my DLL).



Your help is greatly appreciated.




Thank you.