Solved

VB5 Runtime Error 50003

Posted on 1997-09-06
4
546 Views
Last Modified: 2013-11-14
My VB5 app executes fine under Win95, under NT4 I get runtime error 50003. I cannot find any references to this error, what does it mean?

The VB5 setup wizard suggetes problems running my VB5 app under NT 4 unless is has service pack 2, why?

Thanks

PAJ
0
Comment
Question by:PAJ
  • 2
4 Comments
 
LVL 5

Accepted Solution

by:
dirtdart earned 100 total points
ID: 1434042
The setup wizard is correct.  Some of the files in NT4 pre SP2 releases will not support VB5.  However, once you apply SP2, there are still steps you must take.  When you run your setup program, you will be notified that some files are out of date and must be upgraded before proceeding with setup.  Let setup upgrade these files (they will not affect the performance of anything else on the machine).  Then shut down the computer and restart it.  Once this is done, your setup program will run fine and your program will install and run correctly.  I would also advise skipping SP2 and going directly to SP3, since SP2 is full of bugs.  Check the EULA, but you also might be able to include  the SP as part of the install feature.  Just add it into your setup directory, then when your setup program initalizes, use API calls (GetWindowsVersion) to determine system information and install the service pack as appropriate.  This information also pertains to NT3.51.  It must be running at least SP5.
0
 

Author Comment

by:PAJ
ID: 1434043
What about using InstallShield for the installation. Should I just inform users that they must have SP2/3 to run? If so which additional system files should I include in the InstallShield distribution?

Thanks again.

PAJ
0
 
LVL 5

Expert Comment

by:dirtdart
ID: 1434044
I haven't had very much experience with InstallShield, but I would guess that it's not quite as flexible as the VB5 setup wiz as far as customizing.  My suggestion would be to either include a note about SP2/3 in your release notes or maybe create a small customized setup program preferably with C.  All you would have to do is reaname the install shield program to setup2.exe or install.exe or something like that.  Then  create a very small C program that simply checks the operating system and informs the user to install SP2 or 3.  In this manner, you could avoid problems of a user trying to install without reading the release notes and causing you the additional headaches of service unneeded service calls.
0
 

Expert Comment

by:iaj
ID: 1434045
See Microsoft's KB Article Q176438 about a bug :
"...Loading a GIF file that does not specifically contain an Image Object into Visual Basic (via the PictureBox control for example), generates the run- time error 50003...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now