Results 1 to 2 of 2

Thread: Can I bind Winsock to my program???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Philly
    Posts
    82

    Red face Can I bind Winsock to my program???

    I wrote this simple little program that uses a Winsock1.GetHostName or whatever it is, and a Winsock1.GetLocalIP (or whatever it is) and when I tried it on another PC, i got the lovely WINSCK.OCX missing (or whatever it is......).

    Of course, this is because the winsock dll is missing right??

    is there some way that I can add it into my program, so that I do not need to have winsock installed on another machine to run my app??

    Please help me, i'm ready to SCREAM!!!!!!

    -10kman
    I know where Mulder is.....

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    The winsock.dll is not the same as WINSCK.OCX and no there is no way to embed it into your program. You'll need to make a setup program and install it on any other machines. VB has a built in Setup maker thing called Package and Deployment Wizard under Tools or Add-ins, try that. If you are in a bind you can just copy the Winsck.ocx from your computer to the other one then register it, but you may need other files as well. To register it use:
    regsvr32 path to the file

    This is a VERY common problem and if you search the forums here you'll find out what other people did too.

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