在Windows环境中从C或C ++访问COM接口 [英] Accessing COM interface from C or C++ in Windows environment
问题描述
我对组件对象模型规范比较陌生 - 我有一个简单的问题:
- 如何访问 COM接口
例如,访问Microsoft Excel COM接口以执行基本操作,无需用户干预。 / p>
请注意
实际上,使用COM接口。
这是相当复杂,超过我们可以在这里回答。
这里是一个很好的入门: http://www.codeproject.com/KB/COM/comintro.aspx
另一个: http://www.codeguru.com/cpp/com-tech/activex/tutorials/article。 php / c5567
I'm relatively new to the Component Object Model specification - I have a simple question:
- How can I access a COM interface from a C or C++ application
For instance, accessing Microsoft Excel COM interface to perform basic operations, without user intervention.
Kind regards
Actually, you will need to instantiate the object using the COM interface.
This is fairly complicated, more than we can just answer here.
here is a good primer: http://www.codeproject.com/KB/COM/comintro.aspx
Another one: http://www.codeguru.com/cpp/com-tech/activex/tutorials/article.php/c5567
这篇关于在Windows环境中从C或C ++访问COM接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!