How to "new" Winsock in a class module???
Posted on 2002-07-17
Private Sub Class_Initialize()
Set theSock = New Winsock <--- Error
The error: "Compile Error: Invaild use of New keyword"
I can't "new" Winsock in a class module. As you know, when you type "New" in VB, VB will automatically popup a listbox for all objects that can be "new". But I can't see Winsock appeared on the listbox.
Also, I have placed another Winsock control on the Main Form, don't know that will this cause the problem.
How can I fix this problem? Please Help!!!