Click to See Complete Forum and Search --> : Error Loading Project


EC Lim
April 12th, 2001, 03:44 AM
When I open a VB5 project that used COMCTL32.Ocx and was created in other PC, I always have this message " COMCTL32.OCX could not be loaded. Continue loading project? ". I have to create a new project in my PC, register the components that I want to use, than add in the forms, module and etc, By doing so then I can load the project.

I would like to know is there any way I can avoid this message?

Regards

Cimperiali
April 12th, 2001, 06:20 AM
The ocx component may be not the same on different machines. For example, under winnt2000/winnt4.0 and win95/98 you may have matters. Check also for servicepak installed: projects build with sp4 or sp5 installed may fault do load on a machine where VB is installed without those Sp.
Hope this help
Cesare Imperiali

Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.

Cubbie
April 12th, 2001, 06:58 AM
Find the version of the ocx being used on the other PC and copy that file to your hard drive and register it. That should stop the loading errors.

John G Duffy
April 12th, 2001, 11:51 AM
According to a Microsoft document I have, Comctl32.OCX was shipped as part of VB 5.0. It was replaced by MSComCtl.OCX in VB 6.
The Project Properties\Components designation for Comctl32.OCX is Windows Common Controls 5.0 (SP2).
The Project Properties\Components designation for MSComCtl.OCX is Windows Common Controls 6.0. Comctl32.OCX should still be selectable however. Comctl32.ocx is in the \Windows|System directory but probably at a different version which may be your problem.
Try bypassing the error and then selecting the proper component from Project Properties\Components. This may resolve the issue of having to rebuild the entire project. You will still need to readd the controls however.
'
Or you might go into the .vbp file and adjust the reference to the Comctl32.ocx to use the updated version. To do this, start a new project and add the VB 5 version. Save the project then edit it using Notepad. Locate the Object statement generated and replace your VB 5 Project version of this statement with the version 6.0 statement.
'
Or look around the web for some VB5 to VB6 conversion helper programs. No doubt they exist.

Hope this helps.

John G