Problem adding ActiveX to an MFC DLL
-
Hi, I'm building a dll that is staticaly linked to MFC . I'm trying to add an ActiveX control to a dialog in the dll. After adding the ActiveX to the dll dialog I called the dll from an exe file. I always get an error for the create function (I use the following code to launch the dialog) AFX_MANAGE_STATE(AfxGetStaticModuleState()); CMainDialog *m_MainDialog; m_MainDialog = new CMainDialog; m_MainDialog->Create(IDD_DIALOG_MAIN,NULL); m_MainDialog->ShowWindow(SW_SHOW); If there is no ActiveX on the dialog this code works fine. Please help. Thanks. avivhal
-
Hi, I'm building a dll that is staticaly linked to MFC . I'm trying to add an ActiveX control to a dialog in the dll. After adding the ActiveX to the dll dialog I called the dll from an exe file. I always get an error for the create function (I use the following code to launch the dialog) AFX_MANAGE_STATE(AfxGetStaticModuleState()); CMainDialog *m_MainDialog; m_MainDialog = new CMainDialog; m_MainDialog->Create(IDD_DIALOG_MAIN,NULL); m_MainDialog->ShowWindow(SW_SHOW); If there is no ActiveX on the dialog this code works fine. Please help. Thanks. avivhal