Hi NewBies,
I had a crash in winocc.cpp line 301 when trying to add DLL to a
MFC ATL dialog and call from a CView App. After 100 trials my friend
poped me a suggestion worth a ton of Gold !
To prevent crash in DLL when hosting an activex contrl inside a MFC DLL
dialog
Ensure the following
In InitInstance of the DLL App class
Have AfxEnableControlContainer() as the first line;
In your calling applications view invoke the DLL as
CoInitializeEx(NULL, COINIT_MULTITHREADED);
I had it working but any ideas of why it is working ? Experts please
help !
Thanks
Deepak