CDialog in ATL COM DLL Server
-
Hi, I want to put a CDialog Derived Class in a ATL COM DLL Server without MFC Support(ie. MFC Support Unchecked).I am getting a crash in DoModal().When i debugged the code, AfxGetInstanceHandle was returning NULL and there was an assertion at this point.I verified whether the Resource Handle is loaded properly and it is! Cant i put a normal CDialog derived class in such a COM DLL? Should i go for an ATL Dialog? or should i have a COM DLL with MFC Support checked? Regards, Rajendra R
-
Hi, I want to put a CDialog Derived Class in a ATL COM DLL Server without MFC Support(ie. MFC Support Unchecked).I am getting a crash in DoModal().When i debugged the code, AfxGetInstanceHandle was returning NULL and there was an assertion at this point.I verified whether the Resource Handle is loaded properly and it is! Cant i put a normal CDialog derived class in such a COM DLL? Should i go for an ATL Dialog? or should i have a COM DLL with MFC Support checked? Regards, Rajendra R