5,276,156 members and growing! (23,385 online)
Email Password   helpLost your password?
Platforms, Frameworks & Libraries » WTL » General     Intermediate License: The Code Project Open License (CPOL)

RSS Reader Plug-in for Internet Explorer

By Prafulla Tekawade

This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.
VC7.1, VC8.0, C++Windows, Win2K, WinXP, Win2003, Visual Studio, WTL, IE 6.0, IE 5.5, IE, Dev

Posted: 25 Jun 2007
Updated: 17 Jul 2007
Views: 11,633
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
10 votes for this Article.
Popularity: 4.68 Rating: 4.68 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
1 vote, 10.0%
3
0 votes, 0.0%
4
9 votes, 90.0%
5

Introduction

The RSS reader plug-in for IE is an open source project.

About RSS

RSS stands for Really Simplified Syndication which is the standard XML format used for syndication. Many websites (such as CNN or other news websites for that matter) have different sections. But it is not always possible for the reader to visit and read the news in those sections, so what they do is publish the changes to that particular section in the form of XML. The XML format in which they publish this is standardized and that format is called as RSS. The advantage of all this stuff is that If I am interested in sports news from the world, I no longer have to go to the Sports section of some website, but I simply give the link of the RSS published by the concerned website (CNN, in our case) to my RSS reader (RSS Reader is a special software which has the capability to interpret and show the RSS in readable format). This is exactly what the toolbar that I have designed does.

About the RSS-Plugin for Internet Explorer

This plug-in is actually a toolbar for the Internet Explorer. It shows RSS news from the links which are given to it. The RSS links can be configured with the help of the configuration dialog box.

User Guide

  1. Selecting the toolbar in the Internet Explorer.
  2. The toolbar you have installed will have to be made visible if it is not visible. To do so, please select the View->Toolbar menu. You can see the RSS Reader toolbar there, and select that toolbar as follows:

    Selecting the toolbar from the Internet Explorer

  3. Viewing the news
  4. Viewing the news is really very simple. You just have to click on the button that you have added (by default, there are five buttons which show the news from the CNN-IBN news channel). If the corresponding XML file is loaded, the news is visible as follows. The description about the item can be viewed in a balloon tool tip by simply moving the mouse over the corresponding menu item.

    Screenshot - screen2.png

  5. Modifying the settings
  6. The RSS Reader plug-in is fully customizable in terms of the buttons which are visible, and in terms of the link that it takes the data from. Clicking on the RSS Reader... button (the first button on the toolbar) will pop up the configuration dialog box as follows:

    Setting dialog Box

About the Code

This project contains some interesting code fragments, which can be used as an example by everyone. This section describes such code fragments. (This section is for the beginners; if you are already a pro in Windows Programming, you can simply skip this section.)

  1. Creating toolbar buttons dynamically:
  2. In this toolbar, buttons are created and removed dynamically by the Settings dialog box provided.

  3. Creating a cool looking owner drawn menu:
  4. The window on which news is displayed (see the screenshot) is actually a menu. This menu is owner drawn.

  5. Creating "Hot-Spot" on a menu item:
  6. See the last menu item. There are two entries, Next, Prev. Now, when the user clicks on the menu item, only one message is generated; which part of the menu item is clicked is identified by the cursor position. But the cursor position alone can not help. We cannot predict what the valid sections for the Next and Prev are, since we cannot tell where the menu will be shown. So, I have taken the handle of the menu itself and transformed the co-ordinates using the MapWindowPoints() Win32 API.

  7. C++ XML parsing:
  8. I have used TinyXML for XML parsing. It is by far the best and the easiest XML parser available for C++.

  9. Inter-process communication:
  10. The toolbar communicates with the RSS Fetcher process, and all the functions for fetching the RSS from the Internet is given to this process.

Requirements

I have used MS Visual Studio 2005, and you will also need WTL 8.0 to compile this project. WTL 8.0 is available free of cost on the Internet.

Acknowledgements

  • Erik Thompson - Creating desk-bands with an ATL Object Wizard.
  • AmHttpUtilities by Anders Molin.
  • TinyXML- This project is hosted on SourceForge.

Update

  • [7/5/2007]
    • Some memory leaks in RRPRssFetcher.exe removed, some still remains :-(
    • Problems with the Configuration Settings dialog box removed.
    • Now, RRPRssFetcher compiles successfully, all dependent files have been included in the source code [see this thread below].

License

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

About the Author

Prafulla Tekawade


Quote : "Life is all about solving problems and enjoying their solutions !! "
Location: India India

Other popular WTL articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 7 of 7 (Total in Forum: 7) (Refresh)FirstPrevNext
Subject  Author Date 
Generalsome problems [modified]memberlilyshining1219:21 3 Nov '07  
GeneralRe: some problemsmemberPrafulla Tekawade19:27 3 Nov '07  
GeneralRe: some problemsmemberlilyshining1218:29 5 Nov '07  
Generalgood onememberMoim Hossain19:56 4 Jul '07  
GeneralRe: good onememberPrafulla Tekawade3:28 5 Jul '07  
QuestionSource code : AmHttpSocket.cpp losedmemberStoney Tian5:21 4 Jul '07  
AnswerRe: Source code : AmHttpSocket.cpp losedmemberPrafulla Tekawade19:14 4 Jul '07  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 17 Jul 2007
Editor: Smitha Vijayan
Copyright 2007 by Prafulla Tekawade
Everything else Copyright © CodeProject, 1999-2008
Web15 | Advertise on the Code Project