domodal crashing -- solution please.
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I have created MFC dialog in MFC extention DLL. That Dialog is created and displaed successfully using domodal in win32 console application with mfc support and also successfully executed with mfc appwizard executable. Now I have created Office Add-in using the sample of Comaddin. There I am calling the same MFC Extension based dialog in that but is crashing after calling domodal. I tried to setting the resource handle and instance handle before calling domodal. Dialog is showing within few seconds it is crashing. After debugging i got the assertion in the following line. if (!AfxGetThread()->PumpMessage()) The above line from CWnd::RunModalLoop function. This is from default MFC