Results 1 to 7 of 7

Thread: Winsock?!

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Leeds England
    Posts
    54

    Unhappy Winsock?!

    I hav vb6 learning edition and for my final a level poject, i am going to make my own icq messenger?! So i found out it is easiest to do so with winsock. So i browsed the Project>Components to see if i had it. which it said i did. I found a "Mirosoft Winsock Control 6 (sp4)" now when i try to draw a winsock icon onto my form it say that i dont have the right license?? Why? Is it something to do wih the service pack 4 bit? As i have seen other versions of vb 6 learning that have a sp number written on the splash screen, mine doesnt? Does his mean that i need a service pack to run winsock? Where can i get on from ?? How much??

  2. #2
    Lively Member
    Join Date
    Oct 2001
    Location
    Netherlands
    Posts
    115
    I've got VB5 lerning edition, and I had the same problem.
    Try this:

    Uninstall VB and then check wether the file from the winsock control is in the system directory(winsock 5.0 is MSWINSCK.OCX), then install VB again.

    It worked with me.

    I'm not a professional or something, but What you say about that sp thing, it could be. if you like to, I can send winsock5.0 to you. mail me if so.)

    VIP

  3. #3
    So Unbanned DiGiTaIErRoR's Avatar
    Join Date
    Apr 1999
    Location
    /dev/null
    Posts
    4,111
    You can use regsvr32.exe to register OCX's. It won't always work but if the license is 'there' it should do it properly.

  4. #4

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Leeds England
    Posts
    54

    Winsock register

    i wouldnt mind trying that regsvr.exe thing. could someone please send me the MsWinsck.ocxand the dos code t register it!? that would be a great help!
    [email protected]

  5. #5
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    The dos code would be:
    Code:
    For NT, 2k and I think XP:
    RegSvr32 C:\WinNT\System32\mswinsck.ocx
    For 95, 98, and ME:
    RegSvr32 C:\Windows\System\mswinsck.ocx
    If that doesn't work, add a /u flag to the end, execute it, and then remove the /u flag, and execute it again (3 times in total.) This will register it, unregister it, and then register it again.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  6. #6

    Thread Starter
    Member
    Join Date
    Nov 2001
    Location
    Leeds England
    Posts
    54
    ive tried to register it, and i get a messagge saying dllregister service suceeded. and when i try to add the component to the tool bar , itdoes but i try and put it on the form it still says i dont have a license?! so i tried the /u trck and i got a message saying
    loadlibrary (file path) failed
    wat is wrong? and does it matter that im using a file called rersvr32.exe to do it and im registering the file in system not system32?? bearing in mind i have windows 98 not nt of xp? which i know use the sys32 file??

  7. #7
    Lively Member
    Join Date
    Dec 2001
    Location
    vienna, austria
    Posts
    118
    as i's informed, for using winsock you need the enterprise or professional version of vb, look on ebay if you get some cheap
    e.g. http://cgi.ebay.com/aw-cgi/eBayISAPI...tem=1304875700
    visit me on www.big-nell.com to find out the truth

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