Results 1 to 5 of 5

Thread: SetWindowLong() and/or WSAAsyncSelect()

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16
    Hello,


    How do I optain a hWnd for a procedure so I can parse it in the WSAAsyncSelect API call ?

    I can't do much serious winsock cosing unless I can recieve the messages that windows sends me...

    Thanks



    Thomas
    Teenage programmer
    VB6 Pro

  2. #2
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    i think it's the hWnd to the window with the procedure in it, in that case, use FindWindow

    Then you need to subclass the window, where you will recieve the messages.
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16

    Well...

    Well, There's no windows in my app!

    It's just running in a module..


    Thanks anyway


    Thomas
    Teenage programmer
    VB6 Pro

  4. #4
    Fanatic Member gwdash's Avatar
    Join Date
    Aug 2000
    Location
    Minnesota
    Posts
    666
    you need a window to recieve messages, so how about a hidden one.
    GWDASH
    [b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Jun 2000
    Location
    Denmark
    Posts
    16

    Okay then :(

    If you're sure about it, i'll take your word for it. That just sucks! How should a DLL work with winsock then ?
    It must be possible somehow...








    Thomas
    Teenage programmer
    VB6 Pro

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