I am upgrading from Windows 7 to Windows 10. I tried to use activex (ocx) in Windows 10, but the program did not start and ended. I got the source and checked it, but compiling is not a problem, but when I make ocx and load it in another program and use it, "Warning: Creating dialog from within a COleControlModule application is not a supported scenario." is a debug message. Even if it is compiled and used in Release version, it does not run. The activeX program structure in question is used by creating CDialog inside.
Can this situation be solved simply?
m_CamDlg.Create( IDD_CAMDIALOG, this); // <= There is a problem here TRACE("CLiveViewCtrl OnCreate 3n"); m_CamDlg.ShowWindow(1);
Source: Windows Questions C++