Typelib的MFC类 [英] MFC Class from Typelib

查看:662
本文介绍了Typelib的MFC类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前使用Vision Studio 2017,我使用"添加类向导"添加MFC Typelib类。我使用它们与Excel 2016进行交互。为此,我使用注册表Microsoft Excel 16.0对象库< 1.9>使用向导很容易,因为
添加了所有相关的类。但是我注意到它将在新版本中被淘汰。因为我很新,VS会被替换,如果不是,我将如何处理?

解决方案

如果他们没有从VS2019中删除它,请使用
#import指令(C ++)

Currently with Vision Studio 2017 I am using the Add Class Wizard to add MFC Typelib classes. I use them to interact with Excel 2016. For that purpose I use the registry Microsoft Excel 16.0 Object Library <1.9> It is easy with the Wizard because all the pertinent classes are added. However I noticed that it will be eliminated in the new version. Since I am very new a VS will it be replace and if not how would I handle that?

解决方案

If they have not removed it from VS2019 use the #import Directive (C++)


这篇关于Typelib的MFC类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆