我的程序在vc ++中是什么问题 [英] what is the problem in my program in vc++
本文介绍了我的程序在vc ++中是什么问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
IUrlHistoryStg2* pIEHistory;
HRESULT hr;
DWORD dwRef = 0;
CoInitialize( NULL );
hr = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC, IID_IUrlHistoryStg2, reinterpret_cast<void>( &pIEHistory ) );
if( SUCCEEDED(hr) )
{
hr = pIEHistory->ClearHistory();
}
dwRef = pIEHistory->Release();
CoUninitialize();
</void>
问题:
未声明CLSID_CUrlHistory ..
problem:
The CLSID_CUrlHistory is Undeclared..
what is the problem
推荐答案
您是否包含必需的标头?我认为是shlguid.h
Have you included required headers? I think it''s shlguid.h
这篇关于我的程序在vc ++中是什么问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文