Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run-time error Method '~' of object '~' failed

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm getiing the error "run-time error Method '~' of object '~' failed -2147220989 (80040203)" when I start my app. Why and how do I fix it?
 
Inside your project, did you set any references? ("Project" menu, then "References")

In VB6.0, these are checked by default, and are required for almost all VB programs:

Visual Basic For Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation

Unless you've added some additional components/controls such as Microsoft Common Controls, Kodak Image Admin Control, Sheridan 3d Controls, etc., that's all you should need for simple VB programming.

What happens when you check any of the items in the reference list is when your compiled program starts up, it attempts to resolve the reference, and if it can't find the object library needed on a user's machine, it throws an error.

If you really need the referenced object for proper functioning of your program, then you have to check the licensing of the object (to see what the redistribution requirements are for legally giving it away to others), and include it in your setup program.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top