Great! Thanks a lot!
Somehow I had in my mind that I have to include only the functions that my dll will explicitly call. (but, now, DllMain() will be called _each_ time I do a /dll or $dll in mIRC, right? or just the first time it's loaded?)
Also, another question rises now...
If I need to use the dll handle (passed to DllMain) in the rest of my functions, what would be the best way to do that? Maybe declare a global variable and set it to the dll handle in DllMain? or somehow use a pointer to point to the dll handle?
Thanks once again.