Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error message from NEWOBJECT
Message
From
03/03/2009 00:02:08
 
 
To
02/03/2009 17:49:40
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01385125
Message ID:
01385160
Views:
41
>I am getting an error:
>Object class is invalid for this container
>when I run this command from Command window:
>loWriteToServerSocket = NEWOBJECT('OleWinSock', 'tasktimetracking.vcx')
>
>Any idea?
>
>Thanks
You need to place the Winsock control into a container first and save that as a class. Then you can add it to _screen which is what you are doing from the command window. Some Activex controls cannot be placed directly in _screen. But once in a container, the container (with the Activex) can be ADDOBJECT or NEWOBJECT to _screen.

Bernard
Previous
Reply
Map
View

Click here to load this message in the networking platform