Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WinSock Array?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
WinSock Array?
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003802
Message ID:
01003802
Views:
72
Does anyone know if there is a way to create a WinSock Control Array? I am writing an application that communicates with other instances that are being run on other systems. I am using one main WinSock Control on a form to act as the "Listener" and what I want to do is pass connection requests to an available idle WinSock Control located in an array. This allows for multiple (dynamic) connections.

Unfortunatly when I try to "CreateObject" on the Class I devised (Based on the WinSock OCX Control) I get an error stating that the type of object cannot be place in that type of container. Here is the line of code it's crashing on...
     THIS.aWinSock(1) = CREATEOBJECT("DevSock")
DevSock is a class based on the WinSock control. THIS.aWinSock is an array property attached to a form.

Any help would be appreciated.

Thank you
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Next
Reply
Map
View

Click here to load this message in the networking platform