Many people have been facing problems while using some vb6 developed applications like some of flood tools developed in vb6, as the apps developed in vb6 use winsock to create tcp connections with the server so ur pc, in order for the application to run smoothly, should be able to register winscock dll, some times u might face an error and ur app might fail to load, the error might show like this
This error is caused becoz ur pc is unable to load winscok due to absence of or damaged MSWINSCK.OCX
Now how to get rid of it?1st of all lemme tell u that MSWINSCK.OCX is a system file which by default gets installed in ur system directory when u install ur operating system, so u can goto
C:/windows/system32 folder and u can find the file mswinsck.ocx there. If the file is damaged or u cant find it, u can download a fresh copy from
[You must be registered and logged in to see this link.]Once u have downloaded the file, u can copy it and paste it either in default C:/Windows/System32 directory or u can paste it at any convenient location e.g root of D drive
D:/.
Once u have made sure that u have got the ocx file at desired place the next step is to register it as below.
1. Elevate command prompt as an administrator:Goto start and write cmd, a cmd icon will appear, right click on it and select "Run as adminsitrator" (winodws Vista, 7), Win Xp users can access cmd icon from Accessories.
2. Once the command prompt opens u have to register mswinsck.ocx, for that the command is regsvr32.
so if ur mswinsck.ocx is at C:/Windows/System32 the command u can write as
- Code:
-
C:\>regsvr32 windows/system32/mswinsck.ocx
or u can access the folder like 1st type C:\>cd windows/system
and then write regsvr32 mswinsck.ocx and hit enter
- Code:
-
C:\windows\System32\>regsvr mswinsck.ocx
Now if u are tech-challenged and going to system32 seems to bug u, still there is no need to panic as it aint necessary to paste the ocx file in system32 folder, u can paste it elsewhere and invoke it from there itself like e.g if u downloaded the mswinsck.ocx file from above link and pasted it in root system directory viz at
C:/then elevate command prompt as admin and type
- Code:
-
C:\>regsvr32 winsck.ocx
and hit enter, ur dll will be registered and the error is over.
If u still got any confusions, feel free to ask in comments.