CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Posts
    8

    Error Loading Project

    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



  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Error Loading Project

    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.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Feb 2001
    Location
    PA
    Posts
    163

    Re: Error Loading Project

    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.


  4. #4
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Error Loading Project

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured