Click to See Complete Forum and Search --> : Cannot run program


RGregoire
September 9th, 1999, 08:52 PM
Did I do something wrong? Or did I not do something?

I copied my VB5 project files onto a floppy from my laptop and transferred them to my computer at home. But, when I try to load the project I get an error message stating that it cannot load 'comctl.ocx'. Which in turn prevents me from running the program.

Both computers use Windows 95.The VB5 on home computer does not have the service packs installed yet. Could this have anything to do with it?

Any help greatly appreciated.

September 10th, 1999, 12:06 AM
It seems I've had this problem before myself. This problem also seems to surface when you use controls that are beyond the basic tool kit. Try loading the program and then from the File menu choose Project then Add Form then Existing.

Pulling the Forms in this way, (from the back door) has worked for me in the past.

good luck
Bobby G

September 11th, 1999, 06:16 AM
Go in the project/components and unmark the "Microsoft common controls..." save the project and go back to the menu and mark it again. It's strange, but you probably don't have the exact version of the components installed on booth computers. All COM (ActiveX) object use a Class identife(GUID) to reference the object used in the application and if you look in your projcet file(.vbp) in notepad you will see a line look somethnign like this"Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#..\".This is the CLSID that probably differs from the both computers registerd version of the same component. This vith versions and com object is not exactly the best part of COM. If this doesn't help you probably have to reinstall vb!.

/Martin