I'm trying to run an upgraded (VB6 to VB.NET) application which uses methods available in WINSOCK.DLL in Windows\system32 file.
Though this .dll is present on my machine, it shows the following error:
"The application or DLL C:\WINDOWS\system32\WINSOCK.DLL is not a valid Windows image. Please check this against your installation diskette.
Please suggest how to solve this error.
Is it ok to copy winsock.dll from someone else's pc or download it from internet.

winsock.dll error
Stéphane Beauchemin
What about those that wish to run the program but do not have mswinsock.ocx, is there a module that i could place in there
I'm a little new to this visual Basic stuff, so I'm sorry if this is a "noob question"
JeffK_
Andy Ho
I didnot find this on my machine. But the error says its looking for winsock.dll
Stelresort
I tried registering using RegSvr32 as follows:
RegSvr32 C:\windows\system32\winsock.dll
But it displayed the following error:
C:\windows\system32\winsock.dll is not an executable file and no registration helper is registered for this file type.
Is there anyother way
Kmad
make sure it is registered on your system...
Use regsvr32.exe
http://support.microsoft.com/kb/q249873/
Freqy
Here is more info about winsock and how to get it is on the page...
http://support.microsoft.com/kb/122928/EN-US/
curiousss
I was checking the dependencies of WINSOCK.DLL. It shows an error:
No PE signature found. This appears to be a 16-bit Windows module. At least one file was not 32-bit or 64-bit Windows module.
How can I get a current version of WINSOCK.DLL. I'm worknig on VS .NET 2003