Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when running SimpleChart win 7/8

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
Further to previous comments where I confirmed that SimplChart was now working fine as others have mentioned.....

I have just created another install setup file for my application which includes SimpleChart.

When I install this on the 2 Pcs I have here I get an error when I select the option to run the Chart.

On both PCs it flashes up a dialogue box looking in one case for vs_setup.msi and the other one looking for an ocx file.

Until this build all was working fine - I have Mschart20.ocx in the program folder and I have registered it ( didn't help)

I have a feeling using CCleaner has removed something although I have been running this for years.

When I click past this dialogue the Chart appears.

Anyone any ideas please?

Gendev
 
It's trickier to register on win7, you have to use the right regsrv32 from SysWOW64 and not from system32. Also even running Windows as admin this does not elevate any process you start, therefore a regsrv at the command line can reports success, while it did nothing. It's registr entries fpr system regkeys went into a redirected part of the userregistry, which doesn't really register an OCX.

You really have to create or use a setup, as in setup mode the registration really works.

One workaround is to click on start, type cmd in the search box and when cmd.exe is found, right click it and start as admin. The title bar of the cmd.exe window will then show "Administrator: c:\..." and you can be sure, when you run a .bat or .cmd file from there, the commands within are executed with elevated rights.

The prompt for vs_setup.msi also shows something is missing, perhaps you haven't put dependencies into your setup. Any EXE, DLL or OCX can depend on further DLLs, EXEs, Runtimes it needs to run fully.
Is vs_setup.msi the setup of the SimpleChart OCX?

Bye, Olaf.
 
Also: As he chart appears, are you sure it's nothing else, no other OCX missing? USE your form and browse the recrods with values in Ole2 fields. Is there nothing else but references to the SimpleChart OCX? No Treeview? Slider? anything else?

Bye, Olaf.
 
I debugged around the problem and made sure the ocx was registered in the installer and still got the popup.

I finally dug out my VFP9 DVD and saw the file was on there.

I ran the app again and window's installer found the file and everything is sweet again.

Thanks Olaf

GenDev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top