Results 1 to 12 of 12

Thread: comctl32.ocx for Windows 7

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    comctl32.ocx for Windows 7

    Hi,

    I am using a "Control" object in my VB5 code, in Windows 7 OS.
    When i run a program, that worked on Windows XP, i get the following message:

    Compile Error:
    Can't find project or library.

    And then it takes me to the "Add reference" window automatically.
    It asks me to add "comctl32.ocx" component. But i already have this OCX file.
    can this be a problem of Windows 7? is there another version for this OCX in Win 7?

    Please help! Thanks

  2. #2
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: comctl32.ocx for Windows 7

    Welcome to the forums...

    Have you registered your ocx file...???

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  3. #3
    Lively Member agent_007's Avatar
    Join Date
    Jan 2010
    Posts
    93

    Re: comctl32.ocx for Windows 7

    Quote Originally Posted by zohar View Post
    Hi,

    I am using a "Control" object in my VB5 code, in Windows 7 OS.
    When i run a program, that worked on Windows XP, i get the following message:

    Compile Error:
    Can't find project or library.

    And then it takes me to the "Add reference" window automatically.
    It asks me to add "comctl32.ocx" component. But i already have this OCX file.
    can this be a problem of Windows 7? is there another version for this OCX in Win 7?

    Please help! Thanks

    just register the comctl32 ocx in win7 by
    first copying the ocx to system32 folder and then type this in powershell regsvr32 comctl32.ocx

    Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.

  4. #4

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    yes i have registered it and still the same response

  5. #5
    gibra
    Guest

    Re: comctl32.ocx for Windows 7

    Quote Originally Posted by zohar View Post
    yes i have registered it and still the same response
    If you developed your program using VB6-SP6 in Windows XP environment and next want use this program (compiled as EXE) in Windows 7 environment, you have to create a SETUP to install ALL components that your program use.

    Also, there are other issue to keep in mind when develop VB6 programs and install them in Vista and/or Seven

    Modifications Required for VB6 Applications to Work on Vista
    http://www.vbforums.com/showthread.p...02#post2807202

    Last edited by gibra; Jan 24th, 2010 at 09:42 AM.

  6. #6
    PowerPoster
    Join Date
    Feb 2006
    Posts
    24,482

    Re: comctl32.ocx for Windows 7

    This wouldn't be 64-bit Win7 by any chance, would it?

    There are two regsvr32.exe programs on a 64-bit system. One is 32-bit and the other is 64-bit. They have the same names to help avoid confusion.

    Explanation of Regsvr32 usage and error messages

    You should run the correct one (32-bit) and you should run it elevated. A proper installer would take care of this for you.


    Using reg-free COM makes all of this go away, of course.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    i have a 32-bit win 7

  8. #8

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    and we don't have a proper installer i regret to say it is just us very unproper :-(

  9. #9

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    and how do i find reg-free COM??

  10. #10
    Freelancer akhileshbc's Avatar
    Join Date
    Jun 2008
    Location
    Trivandrum, Kerala, India
    Posts
    7,652

    Re: comctl32.ocx for Windows 7

    Quote Originally Posted by zohar View Post
    and how do i find reg-free COM??
    * http://msdn.microsoft.com/en-us/magazine/cc188708.aspx

    If my post was helpful to you, then express your gratitude using Rate this Post.
    And if your problem is SOLVED, then please Mark the Thread as RESOLVED (see it in action - video)
    My system: AMD FX 6100, Gigabyte Motherboard, 8 GB Crossair Vengance, Cooler Master 450W Thunder PSU, 1.4 TB HDD, 18.5" TFT(Wide), Antec V1 Cabinet

    Social Group: VBForums - Developers from India


    Skills: PHP, MySQL, jQuery, VB.Net, Photoshop, CodeIgniter, Bootstrap,...

  11. #11

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    thanks

  12. #12

    Thread Starter
    New Member
    Join Date
    Jan 2010
    Location
    israel
    Posts
    7

    Re: comctl32.ocx for Windows 7

    question the artical applies to visual studio 2005 is it also relevant if we use visual basic 5?

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