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
Solved

Visual Basic Error 5003

Posted on 1997-11-20
5
1,570 Views
Last Modified: 2013-11-25
I created a VB5 application that runs fine on one computer, but got (unexpected error 5003) on another as soon as the application was started.  The application does not use any extra components except for msvbvm50.dll.  What can cause this error?
0
Comment
Question by:alanl
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
mrmick earned 200 total points
ID: 1441780
A statement like:

err.Raise 5003,"AnyObject","Outside VB's defined errors, to bad someone isn't giving more info here!"

In the first procedure that's being place the following:
Msgbox "It made it to Sub Main"
At the end of that procedure place one like this:
MsgBox "Exiting Sub Main"

Compile and test.  Sometimes this is the only way.  Using this method, you can narrow it down to the line.  Once you do, comment with the line, then if you can't figure out what's wrong with it, post it in a comment here.

mrmick
0
 

Author Comment

by:alanl
ID: 1441781
The error number was really 50003 not 5003, but I don't think this will help much.
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1441782
I'm assuming you found what was causing it though, right?
0
 

Author Comment

by:alanl
ID: 1441783
Problem: "Run-time error 50003" or "System error &H800040005".
Cause: Computer has an outdated comctl32.ocx file.
Thanks for your help mrmick... I found this info at
http://www.cobb.com/m_ivb/
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1441784
You're welcome.  Thank you.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

856 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