Posted on 2000-03-25
I am trying to develop an application which allows clients to develop their own ActiveX plugins which will appear in my app as form.
I have created an ActiveForm, which resides in test.ocx. In my client app I scan a directory at runtime, and register the test.ocx using LoadLibrary and GetProcAddress(RegisterDLL).
However, Im having problems creating and displaying the form.
When I use CreateOLEObject and (loading the result into an OLEVariant), the function returns an IDispatch interface to my AX form object. This IDispatch has no methods which allow me to show the form.
So my question is, how do I get at my form, from this IDispatch ?
I want to be able to access the underlying form via properties or methods such as Top, Left and Show, ShowModal.
Sample source much appreciated, but a good explanation will earn the points.