简体   繁体   中英

How to use an ActiveX control in a com's interface or in a non-mfc application?

在vs mfc项目中,可以在ActiveX控件向导的“工具”->“添加类”中添加ActiveX控件。这将创建一个继承自CWnd的类,我可以通过调用CreateControl创建ActiveX的实例。但是我只想调用ActiveX中的内部接口函数,而不是其UI。因此,如何在非MFC应用程序或其他没有UI的项目中使用它,例如dll或com等。

ActiveX只是COM,因此您可以从clsid创建实例并调用它的方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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