Winsoce Control = Angry
-
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? -
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. -
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.
-
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.
-
It didn't work . same problem. I'll try that other idea.
-
18 years agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agohey,
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! -
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 agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agookay 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? -
I have no idea, i got this copy off a friend (legally, he got .net and didn't want VB6 no more).
-
18 years agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agothe_liberator:
I TRUST YOU! - lol! -
18 years agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agowell 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. -
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 agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agosoooooo.... 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 agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agooops i mean the learning edition of VB
-
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 agoby Thushan Fernando
Thushan Fernando
Australia :: Melbourne, AustraliaJoined 19 years agoEEEEEXXXXXXXCCEEEELLLLLEEEENNNNT! 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! -
OK, I'll do that next time i'm not really tired
Post a reply
.NET forum discussion
-
edmonton female escort services near me
by canadapleasure (0 replies)
-
Bagaimana memenangkan $ 1,54 miliar dalam Mega Jutaan
by gametogelan (0 replies)
-
input integer from text file and output text file
by shmilon (0 replies)
-
cSharp stuck at exercise
by xander_Michiels (0 replies)
-
Need help in selected the Tax Audit Year from drop down menu and displaying results for the selected year
by citymumbai (0 replies)
Quick links
Recent activity
- arif ahmad replied to How to receive data in web ...
- William Thompson replied to What is the name of the Win...
- Sameera Piyadigamage replied to Point of Sale Developers: H...
- Scott Carline replied to 4 x C# Developers for large...
- Rajendra Dhakal replied to Restore SQL Server text dat...
- cloud rainda replied to How to convert between TS f...
Enter your message below
Sign in or Join us (it's free).