But is the MFC dynamic library project, add a dialog box, insert the ocx, call of ocx function returns failure
CodePudding user response:
Baidu search "MFC COM container"CodePudding user response:
The building Lord, is there in the program start calling CoInitialize initialization ocx function? Can also try the method of dynamic loading ocx: similar call LoadLibrary function or"The CWnd m_Wnd; M_Wnd. CreateControl (_T (" XX. XX. 2 "), NULL, WS_CHILD | WS_VISIBLE, CRect,0,20,20 (0), and this, 1); Method, and so on,