ok so i dove in a bit on this COM stuff, but now im stuck, i just cant figure out how to retrieve recieved data
[ code='text' ] (
Popup )
Func _TCP_OnDataArrival($Len)
While 1
$data=$ConnectSocket.GetDataBuffer
If $data<>"" Then ExitLoop
WEnd
MsgBox(0,"Len/Dat",$Len&@CRLF&$data)
EndFunc
or
[ code='text' ] (
Popup )
Func _TCP_OnDataArrival($Len)
While 1
$ConnectSocket.GetData($data,"vbLong",1024)
If $data<>"" Then ExitLoop
WEnd
MsgBox(0,"Len/Dat",$Len&@CRLF&$data)
EndFunc
Quote
object.GetData(data, [vtype], [maxLen])
Retrieve data sent by the remote computer (acceptable values for vtype parameter are vbByte, vbInteger, vbLong, vbSingle, vbDouble, vbCurrency, vbDate, vbBoolean, vbError, vbString, vbArray + vbByte)
object.GetDataBuffer()
Returns data sent by the remote computer (For use in JavaScript and similar languages, not supporting return parameters in functions)
the above functions are successfuly called when the data is recieved, and without the while loop $len will return the proper length, but i just cant GET the data... as you see in the quote from OstroSoft, object.GetData has some parameters, and im not sure if ive used them right.... any ideas?
This post has been edited by JohnMC: 02 February 2009 - 02:19 AM