Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding an instance of an ActiveX class at run-time
Message
From
01/11/2007 12:17:37
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
01/11/2007 12:03:53
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01265383
Message ID:
01265760
Views:
24
>Ok, so I'm adding the olecontrol class that contains the OleClass property as a subclass? Just trying to get my head around the logic.
>
>Actually, there was a bug in the change I posted earlier < s >. Should be:
>
>
THIS.oSock = CREATEOBJECT("Myosock")
>
>Actually, the way that I do this is to use the Visual Class Designer as I told you earlier. I create a custom class based on the OLE Container control and insert the winsock control. Takes about 3 seconds < s >. Then instantiate my custom class at runtime.

Now I'm getting "Object class is invalid for this container." on this line during runtime:
THIS.oSock = CREATEOBJECT("Myosock")
This stuff will drive you crazy! Well, maybe not you...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform