Solved

VB5 Runtime Error 50003

Posted on 1997-09-06
4
548 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…

911 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