Posted by Ben on May 17, 2006
Programming with a framework that you’ve developed can be annoying, when you compare it to the ease of IDE-supported frameworks. MFC is a nice framework primarily because Visual C++ has so much built-in support for it. My little framework has no such support (and I have no ambitions to build in IDE support for it) [...]
Posted by Ben on May 17, 2006
 We miss our sweet Esha. She has really left a big empty spot in our house and in our hearts. This is how we will remember her; sitting in her favorite place; watching over the front garden. 2 Feb 1996 – 15 May 2006  Â
Posted by Ben on May 17, 2006
The best media player just got better. At work, I just downloaded the new version of Windows Media Player 11 in beta. From what little I’ve used it, it’s a HUGE improvement. One potential thing I slightly miss is that I can’t view albums in the left-hand “browser” and the tracks in the right-hand “content” view. [...]
Posted by Ben on May 16, 2006
We just watched Flightplan on DVD, and I have to say I thought it was a pretty good movie. It was interesting how it made you feel by taking place completely on an airplane (albeit a very large one). There were some weak moments, but all in all it kept me interested.
Posted by Ben on May 15, 2006
People are often amazed when I tell them that programming is not just a job–it’s also my hobby. I know that it’s one of the main reasons I was immediately considered for the job I have now. After looking at my cv, my now-manager headed to my web-site and saw that I had done a [...]
Posted by Ben on May 12, 2006
In the last post, I showed some code that had a very simple problem. The problem is that when you call HIWORD, it converts the 16 bits into an unsigned short, which then gets passed as an int padded with zeros–not sign extended (it’s not signed). It will NEVER be less than zero. The solution [...]
Posted by Ben on May 10, 2006
What’s wrong with this code? UINT a; . . . DoSomething(HIWORD(a)); void DoSomething(int x) {  if (x < 0)  {   //do something  }  } I recently ran into this in some code I was working on.
Posted by Ben on May 8, 2006
My favorite new feature in IE7 is QuickTabs (Ctrl+Q) that shows thumbnails of all the current tabs. It’s just cool.
Posted by Ben on May 5, 2006
I just discovered a fun tidbit of information. I was using NUnit to test a number of assemblies in a single project, and many functions need an app.config file. The instructions on how to do this can be found in various places, but I was having a problem that nobody else seemed to have. My [...]
Posted by Ben on May 3, 2006
The main thing wrong with the code is that object.ReferenceEquals(a,b) will ALWAYS return true because it’s comapring structs, which are value types. Value types are passed by value, not reference, so every instance is different. Â