Link to home
Start Free TrialLog in
Avatar of lee88
lee88Flag for United States of America

asked on

vb6 problem accessing mswinsck.ocx

Hi,

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?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of edwardiii
edwardiii

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lee88

ASKER

I have forwarded the first link to the coder and expect that this is the solution, but have not heard back yet. Thanks a bunch!