Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello all,

Using Windows 11 x64, and I must maintain an old project.
I can't open dialogs with that OCX control embedded, but the application compiles and links properly and I can even execute the built exe without issues.

I have already copied MSCHRT20.OCX into C:\Windows\SysWOW64, launched an administrator privileged console window and executed "regsvr32 MSCHRT20.OCX" to register that OCX control.

Using an older Visual Studio version (2019) I can open the dialogs where that OCX is included without any problems.

If I build the program, I can execute it and see the control working.

But I can't modify the dialog because I can't open it from VS2022.

Summarizing:
- I have registered the MSCHRT20.OCX control.
- In VS2019 I can make changes and I have no issues.
- In VS2022 I can't open the dialogs on the resource view as it says:
---------------------------
Microsoft Visual Studio
---------------------------
The ActiveX control "Microsoft Chart Control, version 6.0 (OLEDB)" is not registered on this computer.
Register the control and try again.
---------------------------
OK
---------------------------


If the problem is that the control is not registered... why does it work with an older version of VS?

How would you get it working in the newer VS2022?

Thank you in advance!

What I have tried:

Registering the control.
Searching the Internet for information about the warning messagebox.
Ask for help here.
Posted
Updated 3-Feb-23 9:42am

1 solution

WOW!

Visual Studio Feedback[^]

It looks like that making VS a 64 bits native program killed the opportunity to have 32 bits libraries, ocx... inside the program.

Given MSCHRT20.OCX is a Microsoft old chart thing, I think the best I can do is searching for a replacement.
 
Share this answer
 
Comments
Dave Kreskowiak 3-Feb-23 17:48pm    
You got it! I ran into the same problem with an old app myself.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900