佚名通过本文主要向大家介绍了com ptr t,ptr,守望先锋ptr,守望先锋ptr怎么进,ptr是什么意思等相关知识,希望对您有所帮助,也希望大家支持linkedu.com www.linkedu.com
问题: _com_ptr_t如何使用?最好有比较详细的代码
描述:
解决方案1:
描述:
如题
解决方案1:
看MSDN的例子:
COMMAP: Demonstrates COM Interface Map Entry Macros with Compiler COM Support
This basic sample shows how different COM interface map entry macros are used. This sample uses the smart pointer mechanism (_com_ptr_t) of Visual C++ native compiler COM support. The #import mechanism is used instead of the MIDL generated .h and .c files to provide marshaling information.