Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error message from NEWOBJECT
Message
De
03/03/2009 00:02:08
 
 
À
02/03/2009 17:49:40
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01385125
Message ID:
01385160
Vues:
40
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform