Results 1 to 7 of 7

Thread: problem opening source between PC's , need help please !

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300
    Hi , Hope you guys can help me as this problem is driving me nuts !
    I am responsible for new developments and enhancements to a program that I co-wrote in VB5 pro. A couple of weeks ago one of the other guys in my development team done an upgrade to this program, he mapped onto my PC and pulled the source onto his PC and then made code amendments and compiled and installed the software on the production line.

    Now when I try to open the sorcecode on my PC I get errors when loading it,

    Line 13: Class ComctlLib.Toolbar of control tlbLabel was not a loaded control class.
    Line 120: Class ComctlLib.StatusBar of control StatusBar was not a loaded control class.
    Line 178: Class ComctlLib.ImageList of control imgLabel was not a loaded control class.


    Line 1302: Class ComctlLib.TreeView of control tvwOrders was not a loaded control class.
    Line 1462: Class ComctlLib.ImageList of control imgRequest was not a loaded control class.

    I have downloaded the latest cmtrl32.dll from the MS site and now have a more upto date version of the file than the machine the code changes were made on , we also have the same version of the file cmtrl32.ocx.
    I have installed the same service packs ( sp3 ) that he has on his machine, he also made an installation which I ran on my machine to try and get all correct files for the app but still no luck.
    This is beyond what I know and understand of VB and assosiated files and is causing a problem for the production line if I don’t figure it out soon.
    Any help would be greatly appreciated.

    I should add that no extra controls have been added by my workmate just code fixes.

    Thanks Guys
    Mark

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    I've never heard of cmtrl32.ocx!


    The components you listed are in COMCTL32.OCX

    Are these the same version on both machines?

    if you view the project file using notepad is there a line the same as this


    Object={6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0; Comctl32.ocx


    This came from a VB5 SP3 project file





    Mark
    -------------------

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300

    Mark...

    Thanks for your reply.

    Sorry , I did mean comctl32 , and no that line was not in the project file so I added it in , but when I try to open it now I get the message.

    comctl32.ocx could not be loaded.

    the log file showns
    Line 1302: Class ComctlLib.TreeView of control tvwOrders was not a loaded control class.
    Line 1462: Class ComctlLib.ImageList of control imgRequest was not a loaded control class.

    I have version 5.01.4319 is this relevant to the line that you sent me !

    Just a quick thought does it matter where I put the line in the project file , I just randomly put it in amoungst the other lines of the same type ( understand )

    Many thanks
    Mark

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    ok, remove that line that you put in,

    open the project (it will report errors)
    re-select the Microsoft Windows Common Controls 5.0 from the components list

    save the project, close and re-load

    any success?




    Mark
    -------------------

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300

    tried that and no success

    I have just tried that mark, when I click on the box to uncheck then recheck it wont let me. It says can't remove components in use. Any other idea's
    PS the help that comes with the msgbox displayed suggest removing those components then removing the reference but thats a non starter as the project is huge.

    Thanks !

  6. #6
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    did you remove the reference to comctl32 manually from the project file before opening it?

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300

    problem solved

    I have just managed to fix the problem.
    I opened the newly changed source project file that doesn't work on my pc and then opened a previous version that does work on my pc and compared the two project files.
    I found a difference in the files, my good version had a line for COMCTL32.ocx and a line for COMCT232.ocx, the bad version had only a line for cmtct232.ocx. So I cut and pasted the COMCTL32.ocx line into the bad version and it now opens on my machine.

    The bad version runs fine on my workmates pc and runs okay on the main production line except for a particular form wont open, crazy!

    Thanks a lot you definatley put me onto a winning solution.

    Cheers mate !

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