Browse by Tags

Changing the Desktop Wallpaper Programmatically on Windows
12 October 07 01:39 PM | john | 0 Comments   
My friend Scott asked me the other day how he might go about changing the desktop wallpaper programmatically. It's one of those things that is still buried in the native Windows Win32 API. The call you need is SystemParametersInfo and the action you need Read More...
Filed under: , , ,
Getting accurate per thread timing on Windows
17 July 07 05:04 PM | john | 2 Comments   
If you need to accurately time operations in Windows, you're usually directed to the QueryPerformanceCounter API. This API is also neatly wrapped in .NET under the Stopwatch class. Indeed, this is this is simplest way to get reasonably accurate timings Read More...
Putting SxS errors in your face
01 May 07 09:18 AM | john | 2 Comments   
There are two schools of thought when it comes to unrecoverable software errors. One say that errors should be in your face and the other says that errors should be hidden (or at least smoothed over). It's not hard to see that the latter is a good approach Read More...
Filed under: , , , , ,