WinSock

This is a discussion on WinSock within the Windows Programming forums, part of the Platform Specific Boards category; Every time I use WinSock in VB6 I get the same error message. "Wrong protocal/connection state for requested action to ...

  1. #1
    Registered User CumQuaT's Avatar
    Join Date
    Sep 2001
    Posts
    73

    Unhappy WinSock

    Every time I use WinSock in VB6 I get the same error message.

    "Wrong protocal/connection state for requested action to take place"

    Any ideas on a fix?

    (P.S. I know i've got the code right, cause I'm using the tutorial GIVEn stuff)
    Why? The often unanswerable question. If it is unanswerable, why answer it?

    Join the Cult of Sheograth, it's the place to be!

    http://cultosheogorath.proboards16.com

    Lord, we know what we are, yet we know not what we may be... Who wrote that anyway? If you know, E-Mail me. mr_shnokovitz@yahoo.com

    Joy to all the fishes...

    **infected by frenchfry164**

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Maybe you get more answers on a VB specific board
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Registered User CumQuaT's Avatar
    Join Date
    Sep 2001
    Posts
    73

    reply

    Hey. I've been getting some pretty nice help in VB so far, dude.
    Why? The often unanswerable question. If it is unanswerable, why answer it?

    Join the Cult of Sheograth, it's the place to be!

    http://cultosheogorath.proboards16.com

    Lord, we know what we are, yet we know not what we may be... Who wrote that anyway? If you know, E-Mail me. mr_shnokovitz@yahoo.com

    Joy to all the fishes...

    **infected by frenchfry164**

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Winsock API or Winsock control?

    If Winsock control, try looking in its properties window for a protocol property. Try the different values.

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    Check out MSDN winsock 2 reference page.

    http://msdn.microsoft.com/library/de...art_page_2.asp

    Kuphryn

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Winsock issues
    By tjpanda in forum Windows Programming
    Replies: 3
    Last Post: 12-04-2008, 08:32 AM
  2. Winsock Messaging Program
    By Morgul in forum Windows Programming
    Replies: 13
    Last Post: 04-25-2005, 05:00 PM
  3. Winsock - Where do i start?
    By Brain Cell in forum Networking/Device Communication
    Replies: 5
    Last Post: 02-14-2005, 01:39 PM
  4. Where do I initialize Winsock and catch messages for it?
    By Lithorien in forum Windows Programming
    Replies: 10
    Last Post: 12-30-2004, 12:11 PM
  5. winsock
    By pode in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-26-2003, 01:45 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21