Click here to Skip to main content
15,907,392 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMDI stupid question.... Pin
Philip Patrick30-Jan-02 9:50
professionalPhilip Patrick30-Jan-02 9:50 
GeneralRe: MDI stupid question.... Pin
Joaquín M López Muñoz30-Jan-02 10:21
Joaquín M López Muñoz30-Jan-02 10:21 
GeneralRe: MDI stupid question.... Pin
Philip Patrick30-Jan-02 11:11
professionalPhilip Patrick30-Jan-02 11:11 
GeneralInterthread messaging Pin
30-Jan-02 9:20
suss30-Jan-02 9:20 
GeneralRe: Interthread messaging Pin
Joaquín M López Muñoz30-Jan-02 9:45
Joaquín M López Muñoz30-Jan-02 9:45 
GeneralRe: Interthread messaging Pin
30-Jan-02 10:09
suss30-Jan-02 10:09 
GeneralRe: Interthread messaging Pin
Joaquín M López Muñoz30-Jan-02 10:17
Joaquín M López Muñoz30-Jan-02 10:17 
Generaltrying to clear History from IE Pin
TigerNinja_30-Jan-02 8:58
TigerNinja_30-Jan-02 8:58 
Hello All,
I am trying to delete the IE History completely, I have used the ClearHistory method (below), however, the History deletes, but the links are still present in the Address (dropdown) in IE6.0 ?

For example, I run my program (calling ClearHistory), after program execution completes, I open up a fresh browser (IE6), I click on the History button, and it displays nothing Wink | ;) , but I click on the Address dropdown, and the sites visited still exist?? I don't understand how to delete the links in the Address dropdown , any guidance is appreciated. Thanks in Advance!!

================================================================
Method Signature;
================================================================
IUrlHistoryStg2::ClearHistory Method

Clears history on a per-user basis.

Syntax

HRESULT ClearHistory(VOID);

Return Value

Returns S_OK if successful, or an error value otherwise.
================================================================
Code Snippet (from Microsoft docs)
================================================================
include <shlguid.h> // Needed for CLSID_CUrlHistory
#include <urlhist.h> // Needed for IUrlHistoryStg2 and IID_IUrlHistoryStg2

IUrlHistoryStg2* pHistory; // We need this interface for clearing the
history.
HRESULT hr;
DWORD cRef;
CoInitialize(NULL);

// Load the correct Class and request IUrlHistoryStg2
hr = CoCreateInstance(CLSID_CUrlHistory,
NULL, CLSCTX_INPROC_SERVER,
IID_IUrlHistoryStg2,
reinterpret_cast<void **="">(&pHistory));

if (SUCCEEDED(hr))
{
// Clear the IE History
hr = pHistory->ClearHistory();
}
// Release our reference to the
cRef = pHistory->Release();
CoUninitialize();



==================================================
Soliant - soliant@yahoo.com
GeneralAccessing Excel Cells from Visual C++ Pin
Havoc30-Jan-02 7:13
Havoc30-Jan-02 7:13 
GeneralRe: Accessing Excel Cells from Visual C++ Pin
Richard Ellis30-Jan-02 12:14
Richard Ellis30-Jan-02 12:14 
GeneralRe: Accessing Excel Cells from Visual C++ Pin
wangyiming30-Jan-02 14:33
wangyiming30-Jan-02 14:33 
QuestionBad Coding? Pin
James R. Twine30-Jan-02 6:42
James R. Twine30-Jan-02 6:42 
AnswerRe: Bad Coding? Pin
Roger Allen30-Jan-02 6:56
Roger Allen30-Jan-02 6:56 
GeneralRe: Bad Coding? Pin
James R. Twine30-Jan-02 7:04
James R. Twine30-Jan-02 7:04 
AnswerRe: Bad Coding? Pin
Igor Proskuriakov30-Jan-02 7:15
Igor Proskuriakov30-Jan-02 7:15 
GeneralRe: Bad Coding? Pin
James R. Twine30-Jan-02 8:48
James R. Twine30-Jan-02 8:48 
AnswerRe: Bad Coding? Pin
Chris Losinger30-Jan-02 9:02
professionalChris Losinger30-Jan-02 9:02 
AnswerRe: Bad Coding? Pin
Joaquín M López Muñoz30-Jan-02 9:08
Joaquín M López Muñoz30-Jan-02 9:08 
GeneralChange the date of file! Pin
Mazdak30-Jan-02 6:14
Mazdak30-Jan-02 6:14 
GeneralRe: Change the date of file! Pin
Ravi Bhavnani30-Jan-02 6:24
professionalRavi Bhavnani30-Jan-02 6:24 
Generalstring usage problem Pin
30-Jan-02 6:00
suss30-Jan-02 6:00 
GeneralRe: string usage problem Pin
Joaquín M López Muñoz30-Jan-02 7:51
Joaquín M López Muñoz30-Jan-02 7:51 
GeneralC++ Macros in Visual C++ Pin
30-Jan-02 5:18
suss30-Jan-02 5:18 
GeneralRe: C++ Macros in Visual C++ Pin
Bill Wilson30-Jan-02 10:14
Bill Wilson30-Jan-02 10:14 
GeneralForaging for Suggestions Pin
Roger Wright30-Jan-02 5:05
professionalRoger Wright30-Jan-02 5:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.