VB5 Runtime Error 50003

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
PAJAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dirtdartCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PAJAuthor Commented:
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
dirtdartCommented:
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
iajCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.