Access to the COM interface with C or C ++ in a Windows environment

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

  • How can I access the COM interface from a C or C ++ application

For example, access to the Microsoft Excel COM interface to perform basic operations without user intervention.

Yours faithfully

+3
source share
3 answers

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

It is rather complicated, more than we can just answer here.

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

: http://www.codeguru.com/cpp/com-tech/activex/tutorials/article.php/c5567

+2

ATL, ++, ++ C. #import COM- DLL EXE.

+2

Microsoft , , , . ++ (.. MFC/ATL), , :

Excel ++ MFC #import

+2

All Articles