Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OleControl must have container?
Message
 
To
23/07/2001 18:15:00
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00534134
Message ID:
00534213
Views:
13
>>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")

* Instantiating container which contains ole class fails
loControl = NewObject("cntMyControl","MyLibrary")

* Instantiating form which contains ole class works
loControl = NewObject("frmMyControl","MyLibrary")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform