Skip to content

Instantly share code, notes, and snippets.

@kennykerr
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kennykerr/a59e0cbe258449d97b1d to your computer and use it in GitHub Desktop.
Save kennykerr/a59e0cbe258449d97b1d to your computer and use it in GitHub Desktop.
#include "pch.h"
#include <conio.h>
using namespace Modern;
using namespace Windows::Foundation;
using namespace Windows::Foundation::Collections;
using namespace Windows::Web::Syndication;
int main()
{
Initialize();
Uri const uri(L"http://kennykerr.ca/feed");
SyndicationClient const client;
client.RetrieveFeedAsync(uri).Completed([](auto const & sender, AsyncStatus)
{
ISyndicationFeed feed = sender.GetResults();
for (ISyndicationItem const & item : feed.Items())
{
String title = item.Title().Text();
printf("%ls\n", title.Buffer());
}
});
_getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment