Using VB6.0 sp5 on NT4.0.
I have a class with the following;
Private WithEvents mSocket As Winsock
But the DataArrival Event is not firing within the class.
[Object Browser definition:
Event DataArrival(bytesTotal As Long)
Default member of MSWinsockLib.Winsock
Occurs when data has been received from the remote computer]
Initially I thought it might be due to no actual data having arrived (!). However, I know that it is being sent from the host machine. And more importantly, a third party socket analysing tool (TracePlus/Winsock from www.sstinc.com
) allows me to view the expected data arrive on my local buffer, yet still no event is raised within VB.
The SendProgress event is working, as is the Error event. The Host machine is using third party software to actually return the data, but we have successfully connected & I can send data to it which it successfully receives & processes.
It might be worth noting that 1. the control is not on a form & is being instatiated within the class & 2. the use of the Winsock.ocx is to replace old API calls which worked okay, but obviously don't map to the winsock exactly.
(N.b. I would give more points but I've just signed up & 75 doesn't go very far!!)