Page 2 of 2 FirstFirst 12
Results 41 to 48 of 48

Thread: Winsock Chat Won't Work

  1. #41

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2003
    Location
    Worcester, MA
    Posts
    782
    Yes, my ADSL box goes to the hub/router, then that splits to my laptop and the desktop. The information for it is :

    Micronet SP250B 10BASE-T EtherHub

    Guess that means its jsut a hub? Silly me lol.
    C#.net, VB, C++, Java, VS 2005/2008
    Dont' forget to rate posts that are helpful to you.

  2. #42
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    Originally posted by jhermiz
    Nice...

    I've been looking at this as well. However, I had some questions...Is it possible to get a listing of user names in a list box of all users connected to the server socket? Kind of like "Users Logged On" ?

    Also what about replacing :-) with smilies in the lisbox ?

    Jon
    Yes, it is possible to list the users... I'll change the program to do that and i'll re-upload it when I'm done.
    But I can't do the smilies picture thing, don't know how to do it, maybe by using a rich text box, but don't have much experience using it...

  3. #43
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803
    Here it is, now the server supports multiple connections, up to 32768 (the max for integer) clients if i'm not mistaken...
    It does not check for duplicate user names. That can be changed easily, but not me... i've done enough, don't wanna waste my time on this...
    Attached Files Attached Files

  4. #44
    Junior Member mickle_johno's Avatar
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    16
    cool man,keep up the good work!
    -=MiCkLe=-

  5. #45
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    You just need to put the picture (smily face) you want into the clipboard, then paste it into a richtextbox..

    VB Code:
    1. Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    2. Const WM_PASTE = &H302
    3.  
    4. ClipBoard.SetData Picture.Picture
    5. SendMessage RichTextBox.hWnd, WM_PASTE, 10, 10


    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  6. #46
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by «°°phReAk°°»
    You just need to put the picture (smily face) you want into the clipboard, then paste it into a richtextbox..

    VB Code:
    1. Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    2. Const WM_PASTE = &H302
    3.  
    4. ClipBoard.SetData Picture.Picture
    5. SendMessage RichTextBox.hWnd, WM_PASTE, 10, 10


    Phreak
    Hmm...
    picture.picture is what? A picture control??? I cannot specify a path can I ?

    Jon

  7. #47
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by «°°phReAk°°»
    You just need to put the picture (smily face) you want into the clipboard, then paste it into a richtextbox..

    VB Code:
    1. Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    2. Const WM_PASTE = &H302
    3.  
    4. ClipBoard.SetData Picture.Picture
    5. SendMessage RichTextBox.hWnd, WM_PASTE, 10, 10


    Phreak
    I put this in a form:

    VB Code:
    1. Option Explicit
    2. Const WM_PASTE = &H302
    3.  
    4. Private Sub Form_Load()
    5. Clipboard.SetData Picture1.Picture
    6. SendMessage RichTextBox1.hWnd, WM_PASTE, 10, 10
    7. End Sub

    And inside a module I did:

    VB Code:
    1. Option Explicit
    2. Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

    I placed a PictureBox (Picture1) on the form with a picture on it...
    the code doesnt do anything...it does not paste that picture into the rich text box.

    Jon

  8. #48
    New Member
    Join Date
    May 2004
    Posts
    8
    Can you pliz e-mail your code and Design coz its seems as if this is what i'm looking for.
    Sabs

Page 2 of 2 FirstFirst 12

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