DavidLiu
Jul 28th, 2000, 03:21 AM
Hi!
I am trying to do a chat program using Winsock. I wanna create a class, so I use mswinsck.ocx by References instead of by Components.
The problem is when the client send a connect request to the server. The server do has the ConnectionRequest event. But when use 'Accept' requestID to accept the client's request, there is a error. "Run-time error 40020, Method 'Accept' of object 'IMSWinsockControl' failed".
I did such chating program before by puting the Winsock control on a form and it is ok. The two program (the good one and the bad one) use the same ocx file 'Mswinsck.ocx'.
Could u tell my why??
Thanks a lot
I am trying to do a chat program using Winsock. I wanna create a class, so I use mswinsck.ocx by References instead of by Components.
The problem is when the client send a connect request to the server. The server do has the ConnectionRequest event. But when use 'Accept' requestID to accept the client's request, there is a error. "Run-time error 40020, Method 'Accept' of object 'IMSWinsockControl' failed".
I did such chating program before by puting the Winsock control on a form and it is ok. The two program (the good one and the bad one) use the same ocx file 'Mswinsck.ocx'.
Could u tell my why??
Thanks a lot