this is the only way i can think of using sendcomplete to send data via winsock.my programming language is vb 6 . here is my code
vb Code:
  1. public SendComplete as boolean
  2.  
  3. Public Sub WaitForWinsock()
  4.    
  5. While Not SendComplete
  6.      
  7.          DoEvents
  8.  
  9.     Wend
  10. End Sub
  11.  
  12. Private Sub sock1_SendComplete()
  13.  
  14.  SendComplete = True
  15.  
  16. End Sub
  17.  
  18. private sub CmdSend_click()'an example of how i send data
  19.  dim strData as string
  20.  strData = "Hello"
  21.  
  22. sendComplete = False
  23.  
  24. winsock.senddata strData
  25.  
  26. WaitForWinsock
  27.  
  28. End Sub
is there anybetter way to code ..? coz my data are not being send properly