Migrating Internet Hearts to WinFX


Last year, Chris Sells wrote a series of articles in which he set out to rewrite Solitaire using Avalon.  The lack of scaling graphics in the Win32 version (and lack of access to its source code, I suppose) forced him down the road of rewriting the app from scratch.  Plus, the point was to explore “the initial decisions developers will make when building new applications targeting Longhorn.”  (This was before WinFX got decoupled from Longhorn and made available for Windows XP & Windows Server 2003.)


This year, I’m going to create a new WinFX-enabled version of Internet Hearts (the not-as-popular card game that also ships with Windows XP).  But the focus is going to be on migration rather than starting from scratch.  I’ll gradually replace the UI with Avalon and the communication with Indigo.  After all, I want to focus on the cool stuff; not rewriting the basic logic.  I’ll share results as I go along, and hopefully I’ll be able to share the source code, pre-migration and post-migration!


I want to give special thanks to Steven Goulet (one of the folks on my new team), who came up with Internet Hearts as a great example application that could benefit from Avalon & Indigo.  He also did the legwork of getting permission for the original source code.  So without him, this would not be possible!

Comments (14)

  1. Jeff Parker says:

    This is a great Idea. I am definately going to be watching this one. A great way to take an older application we all know and give it a bit of a lift and we can learn it all at the same time.

  2. Looking at the card games that ship with Windows XP, I think one of the most obvious opportunities for…

  3. TechEd made me gain about 5 pounds, and my bag somehow gained 20 pounds.  (And I didn’t get a single…

  4. Today Raymond talks about marketing tweaking PDC talk descriptions and some little-known history…

  5. Today Raymond talks about marketing tweaking PDC talk descriptions and some little-known history…

  6. Looking at the card games that ship with Windows XP, I think one of the most obvious opportunities for…

  7. TechEd made me gain about 5 pounds, and my bag somehow gained 20 pounds.  (And I didn’t get a single…

  8. Today Raymond talks about marketing tweaking PDC talk descriptions and some little-known history…

  9. In order to update Internet Hearts with WinFX features, I’m going to leverage C++ Interop and recompile…

  10. kelly browne says:

    please do not ask me for my email address. as my friend gave in her email address to a website and they sent her thousands of emails a day.can i trust this website?

  11. Mark S says:

    Do you think you could upgrade your card sample to the Feb CTP? I am having many difficulties compiling it. I used XamlMigrate as well.

    Thanks