Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mswinsock.winsock is not found.
Message
 
 
To
27/10/2009 17:36:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01431706
Message ID:
01431772
Views:
36
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform