Results 1 to 2 of 2

Thread: WinSock?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Posts
    7

    WinSock?

    Hi!

    I was wondering if it is possible to use WinSock without the OCX, like only using the API? If so, how? And can I create a class so that it acts like the winsock ocx.

    I'm working on a small app and need 2 use the winsock, but I'm using the app in school, and can't register the OCX there.

    Thx in advance

  2. #2
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    Cool Info.

    Yeah, you can use Winsock API to create a class that implements Winsock functionality. It wouldn't be that hard, but you would need a sound grounding in Winsock API, and it would be quiete a complex object to code and design in VB...

    There is an example on Planet Source Code called TTSock i think, which is basically a Winsock control replacemet. It is an OCX, but you should be able to take it to pieces and use the bits you need. Here is the project: http://www.planetsourcecode.com/xq/A...s/ShowCode.htm

    What features of Winsock do you require for your application? Send functioality, listen functionality, etc? If the needs are specific, it might be easy to code a Winsock API solution. Post back and let me know.

    Laterz
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

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