Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / desktop / MFC

MFC PowerShells Easily: Reading CodeProject RSS feed for new articles

1.00/5 (1 vote)
26 Feb 2015CPOL 7.2K  
Easily reading CodeProject RSS feed for new articles from a MFC Application

Introduction

The purpose of this trick/tip is demonstrating how easily it is using the MFC class CPowerShell from http://www.codeproject.com/Articles/880154/MFC-PowerShells-Easily for tasks that require otherwise extensive and many times complicated code.

Using the code

First, download, compile and run the code from http://www.codeproject.com/Articles/880154/MFC-PowerShells-Easily, and delete everything from the application's view (press Ctrl+A and start typing the text/script below).

Then just type in this pretty short code:

C++
irm http://www.codeproject.com/WebServices/ArticleRSS.aspx|
 fl title,description,pubdate,@{l=' ';e={'-'*30}}

And type Alt+R+R (or F5) to run the script.

That's all!

Using CPowerShell MFC class and very short scripts (like the one above) makes you more productive and your application much more powerful, without any extensive and complicated code.

Points of Interest

CROM technology (see my previous article, already mentioned) borrows a lot of power from other applications, just like COM technology.

But you'll need the code from http://www.codeproject.com/Articles/880154/MFC-PowerShells-Easily, which I have already posted (as you can see here: http://www.codeproject.com/Messages/5009925/Article-update.aspx), but the contributor who replied to my question seems to be delaying the publishing more than necessary.

History

just posted.

License

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