Click here to Skip to main content
15,889,570 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
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>


problem:


The CLSID_CUrlHistory is Undeclared..

what is the problem
Posted
Updated 3-Oct-11 22:04pm
v2
Comments
Richard MacCutchan 4-Oct-11 4:05am    
Please use the correct tags around your code to make it readable.

1 solution

Have you included required headers? I think it's shlguid.h
 
Share this answer
 
v2
Comments
Espen Harlinn 4-Oct-11 4:48am    
Good reply, 5'ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900