从访问C或C ++ COM接口在Windows环境下 [英] Accessing COM interface from C or C++ in Windows environment

查看:134
本文介绍了从访问C或C ++ COM接口在Windows环境下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是比较新的组件对象模型规范 - 我有一个简单的问题:

I'm relatively new to the Component Object Model specification - I have a simple question:


  • 如何访问 COM接口 C或C​​ ++应用程序
  • How can I access a COM interface from a C or C++ application

例如,访问Microsoft Excel中的COM接口来进行基本操作,无需用户干预。

For instance, accessing Microsoft Excel COM interface to perform basic operations, without user intervention.

亲切的问候

推荐答案

其实,你将需要使用实例化COM接口的对象。

Actually, you will need to instantiate the object using the COM interface.

这是相当复杂的,比我们更可以只回答在这里。

This is fairly complicated, more than we can just answer here.

这里是一个很好的入门: HTTP://www.$c$ cproject.com/KB/COM/comintro.aspx

here is a good primer: http://www.codeproject.com/KB/COM/comintro.aspx

还有一句:的http:// WWW。codeguru.com / CPP / COM高科技/的ActiveX /教程/ article.php / c5567

这篇关于从访问C或C ++ COM接口在Windows环境下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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