vb6 problem accessing mswinsck.ocx
Posted on 2005-05-13
I had a VB6 program written for me that works fine on my XP laptop. When I install it on my XP desktop, I get an error:
Runtime error '429'
ActiveX component can't create object
at this statement:
Set objSocket = New Winsock
When I asked the coder, he said "The mailer code needs Microsoft Winsock component, and I dont think its finding it on your desktop machine. The solution is simple: 1. On your laptop, look for a file named "mswinsck.ocx" (should be in your system32 folder) 2. Copy it to the system32 folder of the desktop machine 3. Open up a DOS window and get to the system directory. 4. Type: regsvr32.exe mswinsck.ocx (this is needed to register the component)"
I copied mswinsck.ocx to the desktop machine's System32 folder, then opened a DOS window and changed directory to the System32 folder. Then I typed regsvr32 mswinsck.ocx and got a message box that said "DllRegisterServer in mswinsck.ocx succeeded". (I also copied mswinsck.ocx to the application's folder).
I still get the error. So, I ran (in a DOS window on the desktop machine) netdiag /test:winsock /v, which reports that all is OK with winsock.
What do you think the problem is?