teechart下载
在网址下点击红色位置进行下载【下载可能会有些慢】
![](https://img-blog.csdnimg.cn/img_convert/01bf47d1a7a1f693bea971112d4640b4.png)
下载完后在自己的安装路径下鼠标左键双击下面文件
![](https://img-blog.csdnimg.cn/img_convert/03931dfd0fbfea6afe7c79816efb0185.png)
按照下面流程进行
![](https://img-blog.csdnimg.cn/img_convert/e35eef31667d5f6d16d30624599c8086.png)
![](https://img-blog.csdnimg.cn/img_convert/be1e83f8a83459e2b0e07560d9020397.png)
![](https://img-blog.csdnimg.cn/img_convert/63f029e5d30c5cd26f06433b4fff6142.png)
![](https://img-blog.csdnimg.cn/img_convert/1df2f7cdd2903226d639a1f823edebf5.png)
之后是下载环节,默认下载即可
![](https://img-blog.csdnimg.cn/img_convert/b7c1e6713ea431e7158dd504c0027fe5.png)
teechart配置
下载完后,我们打开下载路径,找到下面这个带.cox后缀的文件,复制其路径
![](https://img-blog.csdnimg.cn/img_convert/7db90cd987ab8f9e4d9087ed4d28ae4f.png)
第一种注册方法需要的前置条件
还是上面目录下,复制TeeChart2023.cox文件到C:\Windows\SysWOW64路径下
【32位是C:\Windows\SysWOW32】
![](https://img-blog.csdnimg.cn/img_convert/1c0eedd583f6af672f1639a27161914c.png)
首先,我们需要对控件进行简单的注册
注册有两种方式:
第一种
C:\Windows\SysWOW64路径下找到cmd.exe,鼠标右键点击,选择管理员身份运行
![](https://img-blog.csdnimg.cn/img_convert/4b7893dadaf55064e8c070b8153d0b88.png)
![](https://img-blog.csdnimg.cn/img_convert/813da10c27d5c64a19acb807175eae89.png)
输入下面命令进行注册
cd C:\Windows\SysWOW64
regsvr32 TeeChart2023.ocx
显示下面这个为安装成功
![](https://img-blog.csdnimg.cn/img_convert/e038b6f550922e72fe38d83dc434e137.png)
第二种【我运行成功了但vs上没找到相关文件配置,没报错不清楚什么原因】
我们用管理员身份打开终端【win+x,选择windows终端(管理员),然后enter】
输入:cd 文件地址
下面是我的安装地址命令
cd 'C:\Program Files (x86)\Steema Software\TeeChart Pro v2023 ActiveX Evaluation'
然后输入下面指令进行注册
regsvr32 TeeChart2023.ocx
提示下面这个显示,表示配置完成
![](https://img-blog.csdnimg.cn/img_convert/cdcb987198f6f822e4ca6f18cd459ae8.png)
关于vs里创建MCF工程,看这篇博客:(1条消息) Visual Studio 2019 + MFC——配置MFC_visual studio2019mfc_Starzkg的博客-CSDN博客和(1条消息) VS2022 的 MFC 安装之 Hello World ---- IT笔记之1_vs2022 mfc_黑白谬的博客-CSDN博客
![](https://img-blog.csdnimg.cn/img_convert/7333499bb88326977649fbac5dd1b3d4.png)
![](https://img-blog.csdnimg.cn/img_convert/2549cb9df1a041bc2831e8a2576318ef.png)
![](https://img-blog.csdnimg.cn/img_convert/b036ed21361c1b4b0dc294529cef091a.png)
打开vs2022,新建一个MCF‘基于对话框’的新项目,然后按照下面进行操作
![](https://img-blog.csdnimg.cn/img_convert/278082f1f34f9a89426e6bd0cdacabb8.png)
下面操作参考教程:(1条消息) MFC中使用TeeChart控件(vs2017环境下)_mfc teechart_Xu_Xiaoping的博客-CSDN博客
【这部分操作每个版本都差不多的】
![](https://img-blog.csdnimg.cn/img_convert/a6f86a0c825e6f8af0006ee605a3f8bc.png)
![](https://img-blog.csdnimg.cn/img_convert/cd8670397f3e7e74c94e2ef4ec71d098.png)
![](https://img-blog.csdnimg.cn/img_convert/f789299a0235137e5617b4785ccae5b3.png)
![](https://img-blog.csdnimg.cn/img_convert/09a0d3a6a5b86aba5255874a371da8a8.png)
![](https://img-blog.csdnimg.cn/img_convert/48e20cf8255f7805a60d55f2a953e60e.png)
![](https://img-blog.csdnimg.cn/img_convert/c5072db9a89efc77a9e223c047c5ad6a.png)
![](https://img-blog.csdnimg.cn/img_convert/cd957dab53ea6cd2fc71e34828d922b0.png)
![](https://img-blog.csdnimg.cn/img_convert/9590c7c1c5b4f9fdfe67ff28a5e4391e.png)
![](https://img-blog.csdnimg.cn/img_convert/2b24a611c30a0a0e32ae7e0d4b1a2b72.png)
![](https://img-blog.csdnimg.cn/img_convert/acb454f19b98e8ba34139d40d9980905.png)
![](https://img-blog.csdnimg.cn/img_convert/f7033a979d0c1546cab5c95d6392ef5d.png)
![](https://img-blog.csdnimg.cn/img_convert/be1a8016b5d4954f463299b980a4d403.png)
![](https://img-blog.csdnimg.cn/img_convert/ccbf2ce8e96d12dac67291c0eb3c6340.png)
![](https://img-blog.csdnimg.cn/img_convert/59d664a2304bc5c0f280ea03b43a0857.png)
![](https://img-blog.csdnimg.cn/img_convert/3fa248eb7945183cff99aa4fd0d05a7d.png)
![](https://img-blog.csdnimg.cn/img_convert/28a9776d19500a2616af20807288d16f.png)