今天我们来分析QueryInterface函数。HRESULTCDictionary::QueryInterface(constIID&iid,void**ppv)
{
if(iid==IID_IUnknown)
{
*ppv=(IDictionary*)this;
((IDictionary*)(*ppv))->AddRef();
}elseif(iid==IID_Dictionary)
{
*ppv=(IDictionary*)this;
((..
分类:
其他好文 时间:
2017-11-22 11:48:37
阅读次数:
137