>This is a quick&dirty code sample of what you can do. Pointers.PointersCtrl.1 is one of my ActiveXs created in VC++. It's inivisible at runtime, etc.
That helped me get closer, but I'm still having some trouble. The code that you provided DOES work for Physical Controls and insertable objects (like Excel worksheets, etc.)
The error that I'm getting now, is an Ole Error, (not a fox one) "No Such Interface Supported". I think this is because it is trying to site my object (which is not a control) on a container.
o=createobject("MyContainer")
DEFINE CLASS oleClassExample AS OleControl
OleClass ="dlltest.jtest"
ENDDEFINE
DEFINE CLASS MyContainer AS form
ADD OBJECT oleObjectExample AS oleClassExample
ENDDEFINE
Jay Shepherd