-
Jan 24th, 2010, 08:13 AM
#1
Thread Starter
New Member
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
-
Jan 24th, 2010, 08:18 AM
#2
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,...
-
Jan 24th, 2010, 08:20 AM
#3
Lively Member
Re: comctl32.ocx for Windows 7
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
Im Pro in C#,VB.NET,Batch,Socket Programming, SPY Software Programming, VB6, Win32Api, VBscript, Windows Registry, ASP.NET, PHP, Jquery, AJAX.
-
Jan 24th, 2010, 08:38 AM
#4
Thread Starter
New Member
Re: comctl32.ocx for Windows 7
yes i have registered it and still the same response
-
Jan 24th, 2010, 09:37 AM
#5
Re: comctl32.ocx for Windows 7
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
Last edited by gibra; Jan 24th, 2010 at 09:42 AM.
-
Jan 24th, 2010, 12:06 PM
#6
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.
-
Jan 25th, 2010, 05:00 AM
#7
Thread Starter
New Member
Re: comctl32.ocx for Windows 7
-
Jan 25th, 2010, 05:02 AM
#8
Thread Starter
New Member
Re: comctl32.ocx for Windows 7
and we don't have a proper installer i regret to say it is just us very unproper :-(
-
Jan 25th, 2010, 05:03 AM
#9
Thread Starter
New Member
Re: comctl32.ocx for Windows 7
and how do i find reg-free COM??
-
Jan 25th, 2010, 05:12 AM
#10
Re: comctl32.ocx for Windows 7
Originally Posted by zohar
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,...
-
Jan 25th, 2010, 05:20 AM
#11
Thread Starter
New Member
Re: comctl32.ocx for Windows 7
-
Jan 25th, 2010, 05:45 AM
#12
Thread Starter
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|