Solved

Visual Basic Error 5003

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

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…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

733 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