Monthly Archives: January 2009

How to learn WPF (or anything else)

I’ve recently been learning WPF. This is a huge topic that is uncontainable by any single book, tutorial, or web-site. The complexity and breadth of this framework is nearly oppressive, but the results are incredible. Or rather, I should say, potentially incredible. My first book, C# 4.0 How-To is now shipping! If you like tips [...]

Determine CPU usage of current process (C++ and C#)

My first book, C# 4.0 How-To is now shipping! If you like tips you can use, check it out! Updated 2/4/2009: I changed the implementation of these classes from the original: Instead of a critical section, InterlockedIncrement/Decrement is used. The sample driver program now demos using multiple threads using the CpuUsage class to show thread [...]