_COM_SMARTPTR_TYPEDEF(_Command, __uuidof(_Command));是什么意思
答案:2 悬赏:30 手机版
解决时间 2021-02-10 22:33
- 提问者网友:捧腹剧
- 2021-02-10 15:00
_COM_SMARTPTR_TYPEDEF(_Command, __uuidof(_Command));是什么意思
最佳答案
- 五星知识达人网友:何以畏孤独
- 2021-02-10 15:24
这是com里面的东西,
_COM_SMARTPTR_TYPEDEF
是一个宏,
A _com_ptr_t object encapsulates a COM interface pointer and is called
a “smart” pointer. This template class manages resource allocation and
deallocation, via function calls to the IUnknown member functions:
QueryInterface, AddRef, and Release.
A smart pointer is usually referenced by the typedef definition provided by
the _COM_SMARTPTR_TYPEDEF macro. This macro takes an
interface name and the IID, and declares a specialization of _com_ptr_t
with the name of the interface plus a suffix of Ptr. For example,
_COM_SMARTPTR_TYPEDEF(IMyInterface, __uuidof(IMyInterface));
declares the _com_ptr_t specialization IMyInterfacePtr.
_COM_SMARTPTR_TYPEDEF
是一个宏,
A _com_ptr_t object encapsulates a COM interface pointer and is called
a “smart” pointer. This template class manages resource allocation and
deallocation, via function calls to the IUnknown member functions:
QueryInterface, AddRef, and Release.
A smart pointer is usually referenced by the typedef definition provided by
the _COM_SMARTPTR_TYPEDEF macro. This macro takes an
interface name and the IID, and declares a specialization of _com_ptr_t
with the name of the interface plus a suffix of Ptr. For example,
_COM_SMARTPTR_TYPEDEF(IMyInterface, __uuidof(IMyInterface));
declares the _com_ptr_t specialization IMyInterfacePtr.
全部回答
- 1楼网友:迟山
- 2021-02-10 17:01
搜一下:_COM_SMARTPTR_TYPEDEF(_Command, __uuidof(_Command));是什么意思
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯