Link to home
Start Free TrialLog in
Avatar of Mascolo
Mascolo

asked on

Error 50003 from VB SP3 compiled Exe on 'other' PC's

I have recently installed SP3 for Visual Basic and now my exe doesn't run on other non development PC's, a runtime error 50003 occurs. I have checked many dll versions but to no avail. Anyone any ideas? NOTE : The same source compiled on non SP3 VB doesn't fail!
Avatar of raygibbins
raygibbins

Problem is definately caused by wrong OCX Version
I had same problem with Crystal Reports and Sheridan Calander Widgets OCX's and DLL's
1 If your PCs are running Windows NT, they are all on the same service pack of windows NT

2 Use the setup wizard to create a setup for your .exe, and (again if you're using NT) make sure that the user installing your .exe
- installs it using a user id with Administrator rights to the PC
- does not have any other applications running at the time
Sorry - 1 = "make sure that..."
Avatar of Mascolo

ASKER

We are distributing onto Win 95/98 Only (much to my dissappointment).
That still leaves point 2 (without the administrator bits).
Make a setup for your application with the setup wizard, and make sure the user has no other applications running when installing.
Is this only one application or is more than one that you are trying to setup?
raygibbins is right it's the wrong OCX version. What you need to do is remove the OCX that is the wrong version from the program, (make sure the program and VB are closed before you do this. Then replace the older version, open your program and WhaaaLa your error is cleared.

By the way, after to reload the program into VB you need to rebuild the EXE of the project to make it work in the runtime world.
ASKER CERTIFIED SOLUTION
Avatar of cukaj
cukaj

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