Click here to Skip to main content
12,883,977 members (36,943 online)
Click here to Skip to main content
Add your own
alternative version


22 bookmarked
Posted 14 Aug 2004

Access Internet Explorer's History in MFC

, 14 Aug 2004 CPOL
Rate this:
Please Sign up or sign in to vote.
Getting the History from Internet Explorer in MFC.

Sample Image - iehistory.gif


I just wanted to access the history of Internet Explorer. I found no code anywhere to get it directly, but somehow I managed to combine some of the code and get this working application. The code isn't very great, but it is somewhat useful, you can say. I am not a great writer, so don't expect a good explanation. My coding style is self-explanatory. If you open the IEHistory.h file, you will get to see everything.

  #include <atlbase.h>
  #include <comdef.h>
  #include <mshtml.h>
  #include <UrlHist.h>
  #include <afxtempl.h>

  BOOL  GetHistory(CStringList & list)
    STATURL url;
    CString strUrl;
    ULONG uFetched;
    IUrlHistoryStg2Ptr history;
    IEnumSTATURLPtr enumPtr;

          ( void**)&history)))
            return false ;

      return false;

      strUrl = url.pwcsUrl;
    return true;

More about me.


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


About the Author

Akash Kava
Web Developer
United States United States
Programmer with WILL

You may also be interested in...

Comments and Discussions

QuestionHow can I compile ..... Pin
junyoungkyun21-Jun-05 6:31
memberjunyoungkyun21-Jun-05 6:31 
AnswerRe: How can I compile ..... Pin
cydst27-Nov-07 17:09
membercydst27-Nov-07 17:09 
GeneralFreeing the returned strings Pin
Robert Hastings28-Oct-04 7:25
memberRobert Hastings28-Oct-04 7:25 

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.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170422.1 | Last Updated 15 Aug 2004
Article Copyright 2004 by Akash Kava
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid