Site Tools

Using ActiveX Controls in Plug-ins

Developer: C++
Summary: Discusses how to use ActiveX controls in C++ plug-ins.


I am facing a critical problem regarding a C++ plug-in under Rhino: any ActiveX controls placed in a simple dialog box will crash Rhino. What can I do solve this?


ActiveX, or OLE, controls work in Rhino plug-ins, as plug-in are simply regular MFC DLLs. For more information on MFC DLLs, read MFC Technical Note 33 and MFC Technical Note 58 for more information.

Also, you will need to call this function:

void AfxEnableControlContainer();

in your CWinApp-derived object's InitInstance() member to enable support for containment of OLE controls.

More information on MFC ActiveX Controls...

developer/sdksamples/activexcontrols.txt ยท Last modified: 2015/09/14 (external edit)