Click to See Complete Forum and Search --> : Incorporating OCX into simple DLL


April 15th, 1999, 09:11 PM
I have just finished incorporating two OCX's into an MFC dll.
My first question is:
I embedded the OCX's into a dialog resource and then instantiated the wrapper class for the dialog resource. Is this the typical methodology of incorporating third-party OCX's into the MFC framework?
My second question is:
Can I incorporate an OCX into a simple DLL (non-ActiveX and non-MFC)?

Kevin M. Reilly

reverse
April 15th, 1999, 09:51 PM
I believe wrapper class is the best way for using OCXs or other components.
If you don't use wrapper class, you may call all OCX's method using "automation", IDispatch interface manually.

The OCX can be used in general DLL.
Frankly I've never done.
But it's possible for any C program to contain OCX. Maybe by wrapper class or automation.

A programmer who loves Goethe.

April 16th, 1999, 11:35 AM
Thanks for the response.

I have gone the IDispatch route and have received nothing but GPF's for my trouble. I feel I am missing something. It can't be this convoluted!

Kevin M. Reilly