Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个进程内 COM 服务器(即 DLL),我想在 C++ 应用程序中使用它,该应用程序将使用 MinGW 套件(使用 CodeLite IDE)进行编译。我不知道从哪里开始,有任何提示、建议或示例代码吗?
干杯,马特
就像一个普通的COM一样,你需要得到它的头文件,用于COM类的结构和CLSID,然后
CoCreateInstance(CLSID, ..., ppv) ppv->YourComAPI1(arg1);
与在 VC 下开发没有什么不同。