Click here to Skip to main content
Licence 
First Posted 17 Sep 2000
Views 56,974
Bookmarked 28 times

A sample class to get the favorites of IE

By | 3 Oct 2000 | Article
This is a class to get the folders and urls of the IE.
  • Download demo project & source files - 31.3 Kb
  • Introduction

    I want to put the URLs of my IE to my homepage so that my friends can share these links with me. But I don't know how to do this. After find in many website I cannot get any good tools to help me. Some of them just can get all items in favorites but damage the architecture. So I decided to write a little program.

    After visiting CodeProject.com, I got Naveen's code (you can get it in Shell Programming section). But his code just gets the folders of the favorites. I re-wrote those codes to a class (Sorry I don't kow how to implement COM) so that I can get not only the folders but also the links. Here I must say thanks to Naveen because some codes in my class is from his program. Thanks Naveen.

    To use this class, you just need to call the member functions of the class CFavoriteEngine. It enumerates the items in favorites and get a pointer (CFavoriteEngine::m_pFavoListRoot) to a list. If you want to know the architecture of this list, please put a breakpoint after FavoEng.GetAllFavorites() in your IDE and watch the variable pFavoList.

    The following is the description of the functions:

    • PFAVORITELIST CFavoriteEngine::GetAllFavorites()<code> - Get the root pointer to the list which contains the items of favotires; <li><code>void CFavoriteEngine::CleanUp()<code> - Use this function to clean up the list (delete all item in the list); <li><code>void PrintoutURLs(PFAVORITELIST pFavoListCurFolderRoot, int nFolderLevel) - Outputs the items in the list. And this function also shows how to browse the list.

    I've use this program to get the favotires of my IE and put them in my homepage. Wish you will like it! :)

    BTW: If there are many folders and links in you favorites, the enumeration will spend a long time.

    Have a good day!

    -Ray Yang

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    About the Author

    rayyang2000

    Web Developer

    Australia Australia

    Member

    Ray was graduated from Tongji University in 1997, majored in EE. After worked in 2 electronics company, he found software is really more funny than hardware. So, in 2000, he joined a new company to be a software developer. He is interested in VxD, WDM, Windows System Programming, MFC and COM.
    Living in Shanghai, P.R.China.
    He is a freelance developer and has done many projects in spare time.

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    You must Sign In to use this message board. (secure sign-in)
     
    Search this forum  
     FAQ
        Noise  Layout  Per page   
      Refresh
    QuestionWhat about custom favorite icon? PinmemberSteve Jensen17:27 11 Sep '02  
    AnswerRe: What about custom favorite icon? PinmemberRay Yang21:12 11 Sep '02  
    GeneralRe: What about custom favorite icon? PinmemberSteve Jensen10:43 12 Sep '02  
    GeneralRe: What about custom favorite icon? Pinmemberchimera6713:53 25 Apr '06  
    GeneralMissing a release call (sorry if code's messy) PinmemberChris Hambleton13:01 8 Nov '01  
    GeneralRe: Missing a release call (sorry if code's messy) Pinmemberrayyang200013:36 8 Nov '01  
    GeneralProject Setting PinmemberTim Hodgson5:13 29 Mar '01  

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
    Web01 | 2.5.120517.1 | Last Updated 4 Oct 2000
    Article Copyright 2000 by rayyang2000
    Everything else Copyright © CodeProject, 1999-2012
    Terms of Use
    Layout: fixed | fluid