>>>I am using the oleControl base class to subclass a non-visual ActiveX control. When I try to instantiate the subclassed control in code, I get error 1435 "Object class is invalid for this container".
>>
>>What is the code you're using to instantiate the control?
>
>
>Local loControl
>
>* Instantiating ole class directly fails
>loControl = NewObject("oleMyControl","MyLibrary")
Can you give me at least a hint about what the control is? Or what it does? More than just that it's non-visual. Subclassed from...? OleBoundControl?
Have you tried using the newObject method of your form (or page, or whatever) to add it?
thisform.NewObject("oleMyControl")
, for example.