Accessing COM interface from C or C++ in Windows environment

后端 未结 3 1241
情话喂你
情话喂你 2020-12-06 21:39

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++ applicatio
3条回答
  •  日久生厌
    2020-12-06 22:36

    There is a wonderful article at Microsoft that seems to address this exact question. If you want to stick with straight C++ (i.e. MFC/ATL), you should check out the article as it has loads of sample code:

    How to automate Excel from C++ without using MFC or #import

提交回复
热议问题