Solved

VB5 Runtime Error 50003

Posted on 1997-09-06
4
555 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 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