Results 1 to 4 of 4

Thread: How to send Data with Winsock (Special Type)

  1. #1

    Thread Starter
    Addicted Member BSA01's Avatar
    Join Date
    Apr 2009
    Location
    Bosnia and Herzegovina
    Posts
    146

    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 ?

  2. #2

    Thread Starter
    Addicted Member BSA01's Avatar
    Join Date
    Apr 2009
    Location
    Bosnia and Herzegovina
    Posts
    146

    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

  3. #3
    Hyperactive Member
    Join Date
    Dec 2008
    Location
    Argentina
    Posts
    441

    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
    leandroascierto.com Visual Basic 6 projects

  4. #4

    Thread Starter
    Addicted Member BSA01's Avatar
    Join Date
    Apr 2009
    Location
    Bosnia and Herzegovina
    Posts
    146

    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width