Home > Software engineering >  How the MFC DLL loading ocx plug-ins, and a successful call ocx internal function
How the MFC DLL loading ocx plug-ins, and a successful call ocx internal function

Time:09-23

MFC dialog application, add ocx plug-in, can call normal ocx plugin function successfully, and access to the underlying data successfully!
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,
  • Related