How to retrieve the Interface ID of a COM class so that it can be passed to CoCreateInstance?

后端 未结 3 2114
执笔经年
执笔经年 2021-01-02 05:24

I want to programaticly retrieve the Interface ID for any class so that I can pass it to CoCreateInstance. Any help is very much appreciated!!

See \"How Do I Get

3条回答
  •  情深已故
    2021-01-02 05:48

    You need to know upfront what interface you ask for. This you get from the product specifications, from SDK header files, or you can import the TLB of the COM object into your project.

    the easisest way is to use #import

提交回复
热议问题