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
Re: comctl32.ocx for Windows 7
Welcome to the forums... :wave:
Have you registered your ocx file...???
Re: comctl32.ocx for Windows 7
Quote:
Originally Posted by
zohar
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
Re: comctl32.ocx for Windows 7
yes i have registered it and still the same response
Re: comctl32.ocx for Windows 7
Quote:
Originally Posted by
zohar
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
:wave:
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. :eek:
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.
Re: comctl32.ocx for Windows 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 :-(
Re: comctl32.ocx for Windows 7
and how do i find reg-free COM??
Re: comctl32.ocx for Windows 7
Quote:
Originally Posted by
zohar
and how do i find reg-free COM??
* http://msdn.microsoft.com/en-us/magazine/cc188708.aspx
Re: comctl32.ocx for Windows 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?