Creating dialog from within a COleControlModule application is not a supported scenario

  activex, c++, winapi, windows-10, windows-7

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?

//code

m_CamDlg.Create( IDD_CAMDIALOG, this); // <= There is a problem here

TRACE("CLiveViewCtrl OnCreate 3n");
m_CamDlg.ShowWindow(1);

Source: Windows Questions C++

LEAVE A COMMENT