ActiveX control

Hi !

I want to know whether it is possible to build an ActiveX control using Open Cascade. I want to use open cascade as a viewer in my VB program where I can interactively draw points, lines etc in the ActiveX window.
Please help me in doing this.

m-aronsson's picture

Yes it is possible !

If you look at the Qt support for Fltk support, or even the classes that hook up OpenCascade to a window in MFC for example, the same thing can be done with VB, you just need access to the Windows handle, sorry I don't have an example, I almost never use VB.

If you want to implement your own ActiveX control it's the same idea, look at one of the MFC examples, at least in the past there has been a package with OCC examples for MFC.

Mikael

Mikael