Results 1 to 6 of 6

Thread: Sending Pictures

  1. #1

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164

    Sending Pictures

    I am creating a chatting prog and I am trying to make something like the display pictures on msn. How would I send the pictures over the internet? Would I use winsock to do this? If yes how? Any help would be greatly appreciated. Thnx.
    -Psychotic-

  2. #2

    Thread Starter
    Addicted Member Psychotic's Avatar
    Join Date
    May 2004
    Posts
    164
    any ideas?
    -Psychotic-

  3. #3
    Junior Member
    Join Date
    Jul 2004
    Posts
    21
    SendMessage API

    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    Private Const WM_PASTE = &H302

    Clipboard.Clear
    Clipboard.SetData ***picture here***

    SendMessage box.hwnd, WM_PASTE, 0, 0

    The box cannot be a textbox, as this does not support graphics

    Neutrinohunter

  4. #4
    Member
    Join Date
    Apr 2004
    Location
    Millbrae, CA
    Posts
    48
    Send via winsock.

    www.winsockvb.com has some good tutorials.

  5. #5
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    It depends how big the pictures are. If they are huge, you may want to convert the picture to a Byte array and send that. Or, if they are pretty small, you could just get the width, height, and then the value of each pixel in the picture and send that.

    Its really up to you.

    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  6. #6
    Hyperactive Member
    Join Date
    Mar 2003
    Location
    Greece, Salonica
    Posts
    473
    The msn DPs are 96x96.
    But there are some addons to bypass the resizing

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