Click here to Skip to main content
15,867,686 members
Articles / Desktop Programming / WTL
Article

RSS Reader Plug-in for Internet Explorer

Rate me:
Please Sign up or sign in to vote.
5.00/5 (12 votes)
16 Jul 2007CPOL4 min read 316.9K   1.3K   32   8
This is a toolbar for the Internet Explorer which shows information from RSS taken from the Internet.

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)


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

Comments and Discussions

 
Questionhow to create modeless dialog Pin
Robert Wang198324-Sep-08 3:27
Robert Wang198324-Sep-08 3:27 
Generalsome problems [modified] Pin
lilyshining123-Nov-07 18:21
lilyshining123-Nov-07 18:21 
GeneralRe: some problems Pin
PrafullaT3-Nov-07 18:27
PrafullaT3-Nov-07 18:27 
Maybe you dont have wtl..
Please tell me what kind of error you get..
Dont know about VS6
It compiles on VS2005


GeneralRe: some problems Pin
lilyshining125-Nov-07 17:29
lilyshining125-Nov-07 17:29 
Generalgood one Pin
Moim Hossain4-Jul-07 18:56
Moim Hossain4-Jul-07 18:56 
GeneralRe: good one Pin
PrafullaT5-Jul-07 2:28
PrafullaT5-Jul-07 2:28 
QuestionSource code : AmHttpSocket.cpp losed Pin
Stoney Tian4-Jul-07 4:21
Stoney Tian4-Jul-07 4:21 
AnswerRe: Source code : AmHttpSocket.cpp losed Pin
PrafullaT4-Jul-07 18:14
PrafullaT4-Jul-07 18:14 

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.