Winsoce Control = Angry

.net , vb6 New Zealand
  • 18 years ago

    When I try put the Winsock Control on my form, a msgbox pops up - stating no licence info has been found for it so I can't put it in design mode.


    What are they on about, and what can i do to fix it?

  • 18 years ago

    Unfortunatedly - like me you have discovered one of the faults of VB Learning Edition - No access right to Winsock (and also quite a lot more of controls, i.e.: Multimedia Control). There is no way to use the microsoft Winsock OCX in your projects - and you can't create an instance of it either through code. Your best bet is to go to www.vbip.com and download their Winsock API Class, which is very good and is nearly exactly the same as winsock - only the events are different.


    Hope you have a better idea now.

  • 18 years ago


    Copy me to System32


    try the above


  • 18 years ago

    That zip file doesn't work, im sure that you'll have to have higher than learning edition of VB to use the msWinsock control.

  • 18 years ago

    Unzipping that file into your windows/system directory should work.  Learning Edition just comes with the unregistered version of the winsock ocx file.  The zip file contains the registered version.

  • 18 years ago

    It didn't work . same problem. I'll try that other idea.

  • 18 years ago

    hey,


    i can possibly help if you want. I use transparent Winsock controls(in class module and in forms) which enable me to use the Winsock control without a control being visible. I still dont understand why some ppl insert a new form(which takes up precious space in an exe) and insert a control in there. Anyway sweep aside my dumb idea's and off with the topic again. I can send you the project if you wish. Just email me [email protected](the yoink is so i can retrieve the message out of the others i get otherwise its just thushan) and I'll send you the project.


    Hope it helps!

  • 18 years ago

    Two problems - one you can only initialize the winsock control (in code or object) with VB pro or enterprise (belive me i've tried), and you can't use events with an array of winsock controls (also tried) - thats if you wanted to have multiple sockets

  • 18 years ago

    okay well thats where i stop talking and start listening... any idea's anyone? I havnt got a copy of the Learning edition. Infact i havent even seen a copy of the learning edition until another post(about doing 255^255 returns an error) came through.


    Is there a special place youget it or buy it?

  • 18 years ago

    I have no idea, i got this copy off a friend (legally, he got .net and didn't want VB6 no more).

  • 18 years ago

    the_liberator:


    I TRUST YOU! - lol!

  • 18 years ago

    well i just had an idea, it may/may not work.


    would getting the registered registry entries(from the win32 registry) work?


    Try this:


    Create a new file(any type eg. text) and insert this:


    ========= INSERT FROM BELOW... DO NOT INCLUDE THIS LINE THOUGH ==============


    Windows Registry Editor Version 5.00


    [HKEYCLASSESROOT\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d]
    @="mlrljgrlhltlngjlthrligklpkrhllglqlrk"


    ================= STOP HERE AND OFCOURSE DONT INSERT THIS IN THERE IETHER ======
    then close it(save ofcourse) and rename it to .reg and execute it, when it asks you to merge do so and try again! if that doesnt work use this:
    ========= INSERT FROM BELOW... DO NOT INCLUDE THIS LINE THOUGH ==============
    Windows Registry Editor Version 5.00


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}]
    @="Microsoft WinSock Control, version 6.0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Control]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A52-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A53-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A57-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{40FC6ED4-2438-11CF-A3DB-080036F12502}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{40FC6ED5-2438-11CF-A3DB-080036F12502}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\InprocServer32]
    @="C:\WINDOWS\System32\MSWINSCK.OCX"
    "ThreadingModel"="Apartment"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\MiscStatus]
    @="0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\MiscStatus\1]
    @="132497"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\ProgID]
    @="MSWinsock.Winsock.1"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Programmable]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\ToolboxBitmap32]
    @="C:\WINDOWS\System32\MSWINSCK.OCX, 1"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\TypeLib]
    @="{248DD890-BB45-11CF-9ABC-0080C7E7B78D}"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Version]
    @="1.0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\VersionIndependentProgID]
    @="MSWinsock.Winsock"


    ================= STOP HERE AND OFCOURSE DONT INSERT THIS IN THERE IETHER ======


    then do as before and see if that works. This is of my system. I use Microsoft Visual Studio 6 Enterprise and Microsoft Visual Studio.NET Enterprise Architect so if its different for each 'edition' i prolly cant help you. Also i am running Windows XP Professional so it will be different(the paths to your system root etc) for Win2K.


    DISCLAIMER: WARNING. You are about to edit the registry. Please make a backup before continuing. I am not responsible for any bad things that may happen by doing the above.

  • 18 years ago

    People - there is a god!


    After a bit of modifing the original im pretty sure this will work on Win98 and probly other OS's too, if your system directory is different from C:\windows\system\mswinsock.ocx then please change it, but it should work and winsock will actually apear on the form, oh im so happy! Thank you billion times:


    REGEDIT 4


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}]
    @="Microsoft WinSock Control, version 6.0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Control]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A52-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A53-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{0DE86A57-2BAA-11CF-A229-00AA003D7352}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{40FC6ED4-2438-11CF-A3DB-080036F12502}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Implemented Categories{40FC6ED5-2438-11CF-A3DB-080036F12502}]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\InprocServer32]
    @="C:\WINDOWS\System\MSWINSCK.OCX"
    "ThreadingModel"="Apartment"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\MiscStatus]
    @="0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\MiscStatus\1]
    @="132497"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\ProgID]
    @="MSWinsock.Winsock.1"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Programmable]


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\ToolboxBitmap32]
    @="C:\WINDOWS\System32\MSWINSCK.OCX, 1"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\TypeLib]
    @="{248DD890-BB45-11CF-9ABC-0080C7E7B78D}"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\Version]
    @="1.0"


    [HKEYCLASSESROOT\CLSID{248DD896-BB45-11CF-9ABC-0080C7E7B78D}\VersionIndependentProgID]
    @="MSWinsock.Winsock"

  • 18 years ago

    soooooo.... whos the god now???? lol!


    so if that 'works' would it be fair to say i can tell other people to do this with the standard edition and it will work?

  • 18 years ago

    oops i mean the learning edition of VB

  • 18 years ago

    Actually when i tried it on my other computer - nothing changed, i think you need that code plus this:


    [HKEYCLASSESROOT\Licenses\2c49f800-c2dd-11cf-9ad6-0080c7e7b78d]
    @="mlrljgrlhltlngjlthrligklpkrhllglqlrk"


    Im pretty sure it will work then, if not you can try the file that was linked to earlier in this thread, i don't think you need it - but im not an expert on the subject (yet )


    But it should work for anyone with VB learning, and any VB for that matter, but they will need the Winsock.ocx file (linked to earlier in the thread)



    im so happy!

  • 18 years ago

    EEEEEXXXXXXXCCEEEELLLLLEEEENNNNT! Mr. Burns


    Well that was just a stroke of luck which came about after i ran RegMon on a VB6 session. Ahhhh the goood ol RegMon has done it again!


  • 18 years ago

    OK, I'll do that next time i'm not really tired

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Brevity is the soul of wit” - Shakespeare