Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mswinsock.winsock is not found.
Message
 
 
À
27/10/2009 17:36:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01431706
Message ID:
01431772
Vues:
37
>Thanks again for your help. After changing to "Sock = newobject('OleTest','OleTest1.vcx')", now I am getting this error :
>
>"Object class is invalid for this container". Have I made a mistake in creating the class or selecting the right Insert control ???

Sorry, I should have tried myself first.

Here is what I just did:

1. Created a new class based on container.

2. Added Winsock control and named it Sock.

3. NewObject now works, but in your code you would need to use

Sock.Sock instead of just Sock. If you're accessing its properties and methods using with /endwith construct it would be easy to change.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform