Solved

Visual Basic Error 5003

Posted on 1997-11-20
5
1,543 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

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

Suggested Solutions

Title # Comments Views Activity
VBA error replacing data 6 36
How to incorporate an error traping routing to existing code in VB6 11 39
Add and format columns in vb6 7 45
Advice in Xamarin 21 47
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

929 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

13 Experts available now in Live!

Get 1:1 Help Now