How to send Data with Winsock (Special Type)
How to send Data using winsock, but send Data of Special Type.
I have This "Bitmap" type :
Code:
Public Type Bitmap
bmType As Long
bmWidth As Long
bmHeight As Long
bmWidthBytes As Long
bmPlanes As Integer
bmBitsPixel As Integer
bmBits As Long
End Type
And I want send Array of this Type
Dim ImageData() as Bitmap
How to orginize sending this, and reciveing ?
Re: How to send Data with Winsock (Special Type)
Just to aks. If I can't send special array, can I send array() of Byte, but without sending it in "for loop" (Array(i)) ?
Just, to say SendData MyArray
and, how to recive that
Re: How to send Data with Winsock (Special Type)
CopyMemory used to convert the structure into an array of bytes, then the receiver when the bytes above are equal to LenB (Bitmap) the copy back to the structure
http://www.recursosvisualbasic.com.a...copymemory.htm
or
Remote Desktop
Re: How to send Data with Winsock (Special Type)
I tried to send Byte Array. On one side it is about 100000 members, but on other side, just recive 52. How can I handle this, to recive complete Array ?