简体   繁体   English

在C ++中使用COM对象与MinGW编译器

[英]Using COM object in C++ with MinGW compiler

I have an in-process COM server (ie DLL) I'd like to use from a C++ application that's to be compiled with the MinGW suite (using CodeLite IDE). 我有一个进程内COM服务器(即DLL),我想在C ++应用程序中使用,该应用程序将使用MinGW套件(使用CodeLite IDE)进行编译。 I don't quite know where to start, any tips, suggestions or sample code anyone? 我不知道从哪里开始,任何提示,建议或示例代码?

Cheers, Matt 干杯,马特

Just like a normal COM, you need to get its header files for the structure of COM Class and the CLSID, then 就像普通的COM一样,你需要得到它的COM类结构和CLSID的头文件

CoCreateInstance(CLSID, ..., ppv)
ppv->YourComAPI1(arg1);

Nothing different as developing under VC. 在VC下发展没有什么不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM