Link to home
Start Free TrialLog in
Avatar of ispu7
ispu7

asked on

progressbar problem

Hello folks,

I have a small problem, I have used progressbar using windows common control 5.0. I make an exe file to my application. My application runs normally at my computer. But when I execute on other machines I get this error:
Run time error "339"
compctl32.ocx or one of its dependencies not correctly registered: a file is missing or invalid.

This is broblem because of adding progressbar. Could you please help me to cope this problem that i could run my applicaiton to other pc.

/ispu
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ispu7
ispu7

ASKER

um, but why not windows common control 6 (sp5 ) not working ?
Avatar of ispu7

ASKER

I tried to install sp6 but it is not a valid win32 application. I guess problem might be somewhere else ...
Problem is, that the windows control 5.0 is not available by default in windows XP, win2k computers, you'll have to make a new installation package
and install it on the computers that use your program.

You could also use the progressbar from windows common control 6, service pack version doesn't really matter, this control library is mostly available at
computers...

If you want the progressbar to look like the WindowsXP bar on WinXP machines using a manifest file, then you'll have to use the controls 5 not 6!
Avatar of ispu7

ASKER

the look is really does not matter, i just wanted that it must be running on other computers, I tried my program on other xp windows but the error message comes, I run this program on my windows and it works. The only difference is I have compiled my application on my pc.
Two possible solutions:
1 Do a search on your computer for the file comctl32.ocx
Copy this file to the Windows\System32 directory of all the computers and register the ocx using regsrv32

2 Create a new package of your program using the P&D wizard and then install the package on all the computers.

Both methods will solve your problem, I would do number 2, cause when you get a new computer a the office, you
just run the install program
Avatar of ispu7

ASKER

oops, i wanted to split points, don't know how to do that