VS2017MFC uses Teechart to draw charts

1. Download the Teechart installation file

Link: https://pan.baidu.com/s/1Glnh8RTZ5bdqIEUycHBW6g Extraction code: qyi3

2. Install Teechart

Unzip the downloaded file and install it. The installation directory can be anywhere.

3.pojie file

Register the control. Find the software installation directory, the installation directory TeeChart5.ocxfiles are copied to C:\Windows\SysWOW64the directory, and run with administrator privileges in the directory cmd.exe, and then execute the instruction " regsvr32 TeeChart5.ocx ." When the operating system pops up the prompt box "DllRegisterServer has succeeded in TeeChart5.ocx", it indicates that the control is successfully registered.

4. Use TeeChart control in MFC project

Right click -> Insert ActiveX control


Choose TeeChart Pro Activex controlv5



Insert two lines into the control, double-click the control, and then click Add.

Insert picture description here
Insert picture description here

Now the control is inserted and added.

Guess you like

Origin blog.csdn.net/qq_39400113/article/details/109826738