DllMain issues
-
I am new to COM and am building a simple MFC dll to get things going. I have everything working except that when I include DllMain in my code the linker balks and tells me that dllmain is already defined in my .obj file. Any ideas? TIA. Matt (Padawan Learner)
-
I am new to COM and am building a simple MFC dll to get things going. I have everything working except that when I include DllMain in my code the linker balks and tells me that dllmain is already defined in my .obj file. Any ideas? TIA. Matt (Padawan Learner)
Greets, If I'm not mistaken, MFC has its own DllMain hidden deep down inside. Perhaps you should find it (since the code is included) and mimic what it does inside in order to support MFC in your COM object. However, this might already have been done in the past. Regards, Joe
-
Greets, If I'm not mistaken, MFC has its own DllMain hidden deep down inside. Perhaps you should find it (since the code is included) and mimic what it does inside in order to support MFC in your COM object. However, this might already have been done in the past. Regards, Joe
Thanks. That got me thinking that my project was not setup as it should be. And low and behold it was not. I needed to be using a MFC Extension dll. Everything works great now. Dumb mistake, but like I said, I am new to COM(and to dlls). Matt (Padawan Learner)