Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinSock Array?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
WinSock Array?
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01003802
Message ID:
01003802
Vues:
78
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform