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