Unsupported Frameworks…

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) and [...]

Popularity: 2% [?]

Esha

 
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
 
 

Popularity: 2% [?]

Popularity: 2% [?]

Windows Media Player 11

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. This allowed [...]

Popularity: 2% [?]

Flightplan

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.
Popularity: 2% [?]

Popularity: 2% [?]

Programming as a hobby

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 [...]

Popularity: 2% [?]

What’s Wrong with this code? – 2 – Answer

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 is [...]

Popularity: 2% [?]

What’s Wrong with this code? – 2

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.

Popularity: 2% [?]

Popularity: 2% [?]

Favorite new feature in IE7

My favorite new feature in IE7 is QuickTabs (Ctrl+Q) that shows thumbnails of all the current tabs. It’s just cool.
Popularity: 2% [?]

Popularity: 2% [?]

The First Thing in an XML file needs to be…

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 config [...]

Popularity: 2% [?]

What’s wrong with this code? – 1 – Answer

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.
 
Popularity: 2% [?]

Popularity: 2% [?]