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.