Hi,
When one of my visual studio 2006 c++ MFC projects migrates to the VS 2019, there are some problems loading dialogs in run time. the following debug assertion messages appear:
"Program: C:\Windows\SYSTEM32\mfc140d.dll
File: d:\agent\_work\3\s\src\vctools\VC7Libs\Ship\ATLMFC\Src\MFC\occcont.cpp
Line: 925
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts."
when I tried to debug I understand that calling the DoModal() function of dialog initialization caused this event.
besides, when I want to open the dialog in the IDE, this message is shown:
"2 Activex controls could not be instantiated. reinstall or register controls and try again".
so I can't access the dialog form. I don't know which Activex controls have been used and I am not able to discover them since the dialog is not openable. Note that, This project has run without any problem on the VS2006, before.
What I have tried:
I search in my system but there is no "occcont.cpp".
I tried to understand which Activex controls must be reinstalled but I can't.
I don't know what I must do