CComPtr<IUnknown> unknown;
CComPtr<IMy> my;
unknown.QueryInterface(&my);
解决方案 »
- sysinternalsSuites中的ProcExc.exe求解读
- 如何使CComboBox 控件变灰,让它变成无法操作状态
- 这几个IOctrl是什么意思
- 怎样用vc打开rtf文件
- 如何让显示在视图里的图片不会因视图的改变而消失(比如说最大化)?
- @ @ @ @ ### WinXP SP2 环境下安装VC6 总是出错!!!,求助^-^ !! ###@ @ @ @
- 主线程怎么等待辅助线程呢?(立刻给分!!!)
- 如何实现在一个程序中动态的把焦点给另一个已经运行了的程序?急急!!!
- 请各位大侠帮我恢复声音!
- 如何屏蔽“找到新的硬件向导”
- 为什么有的网站不响应DocumentComplete呢
- Windows api编程radio button消息处理
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType*& p
) throw ( );
template<typename _InterfaceType> HRESULT QueryInterface (
const IID& iid,
_InterfaceType** p
) throw( );
Parameters
iid
IID of an interface pointer. p
Raw interface pointer. Res
Calls IUnknown::QueryInterface on the encapsulated interface pointer with the specified IID and returns the resulting raw interface pointer in p. This routine returns the HRESULT to indicate success or failure