Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WinSock Array?
Message
De
12/04/2005 12:12:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
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:
01003818
Vues:
20
>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,
I think instead you could use this.Newobject() or addObject() if array is not a must (and keep full hierarchy name in array maybe).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform