|
OCX stopped loading in VB6 on a Windows 7 64bit machine |
Posted by Jamie Pocock on Dec-04-2010 03:40 |
|
Hi
I have having a problem I can't seem to put my finger on, hoping some one else has got a resolve.
I have been running VB6 on a Windows 7 64bit machine developing software using the ChartViewer.ocx, It's all been going fine with no problems then out of the blue I get the following meassage when I load the project.
"ChartViewer.ocx could not be loaded, continue loading project?"
I checked to see it was still in the components list and it is, I removed it and added it back, did not fix it, I then uninstalled ChartViewer and installed the latest from the site, same issue.
I even tried a system restore and the problem is still there.
Any help would be appriciated.
Jamie |
Re: OCX stopped loading in VB6 on a Windows 7 64bit machine |
Posted by Jamie Pocock on Dec-04-2010 04:02 |
|
OK found the issue so will share.
Because window 7 can not write to the applications installation directory I wass forced to make it write to the local folders when writing to INI files.
A copy of the ChartViewer.ocx got copied there during testing installation runs.
The installation software then registered that OCX.
However it was not as simple as using regsvr32 /u to unregister the OCX, I had to navigate to C:\\Windows\\System32\\regedt32.exe and right click and run as administrator
Then I could unregister the OCX, uninstall Chart director and reinstall it.
This information might help someone else and save them a few hours scratching there head. |
|