>
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...