Posts by this author

Feb 12, 2007
Post comments count0
Post likes count0

Performance evaluation euphemisms invading everyday speech (ironically)

There was a morning meeting event at which donuts were provided as an enticement. Someone commented on the food thus: "These donuts failed to meet expectations." Peter Sagal remarked that the phrase "emerging to standard" has entered currency in his family as a euphemism for "substandard". (Opening panel round, final question, time code 1:20.) Ho...

Non-Computer
Feb 12, 2007
Post comments count0
Post likes count0

Why doesn't the window manager unregister window classes when the owning DLL unloads?

If you look at the documentation for the function, you'll see that it calls out different behavior depending on whether you're running Windows 95 or Windows NT. Commenter Vipin asked why Windows NT doesn't follow Windows 95's lead. Back in the old days, 16-bit Windows did unregister classes automatically when a DLL unloaded. ...

History
Feb 9, 2007
Post comments count0
Post likes count0

Do I need rush processing? Beats me!

During the preparations for the 2005 PDC, I was filling out an application for a corporate credit card. (The rant behind why I was filling out this application in the first place will have to wait for another day.) One of the options was to check a box to request rush processing at an additional charge of $10. There was one key piece of informatio...

Other
Feb 8, 2007
Post comments count0
Post likes count0

Who is most likely to be awarded a MacArthur Fellowship?

You can count on The Annals of Improbable Research to produce groundbreaking results. One of my favorites is Who is most likely to be awarded a MacArthur Fellowship?, in which researcher (and AIR editorial board member) Eric Schulman performs a careful statistical analysis of previous winners of the MacArthur Fellowship in order to determine wh...

Non-Computer
Feb 8, 2007
Post comments count0
Post likes count0

Why does my property sheet blink and the immediately disappear?

Occasionally, a customer will ask, "I'm trying to display a property sheet, but when I call the function, the property sheet blinks onto the screen and then immediately disappears. What is wrong?" Recall that displaying a property sheet entails filling out a structure, which in turn contains a pointer to either an array of s, or more often, an a...

Code
Feb 7, 2007
Post comments count0
Post likes count0

Maintaining standards of Japanese food abroad

They've been nicknamed the sushi police. In response to horror stories from Japanese travelling abroad and being shocked by what passes for Japanese food outside their borders, the Japanese agriculture ministry is developing certification standards for restaurants abroad that want to call themselves Japanese. Their results are supposed to be out ...

Non-Computer
Feb 7, 2007
Post comments count0
Post likes count0

Why can't I create my dialog box? Rookie mistake #2

Another class of rookie mistake is less obvious from looking at the code. The problem with this code is that we forgot to call to register the listview class. More generally, the problem is that one of the controls on the dialog uses a window class that was not registered. (For example, maybe there's a rich edit control on the dialog, but nobo...

Code
Feb 6, 2007
Post comments count0
Post likes count0

Why can't I create my dialog box? Rookie mistake #1

Each dialog box resource is specified either by an integer ordinal or by a string name. But a simple typo will turn one into the other. Do you see the two "classic rookie mistakes"? It may be easier to spot if you take the resource file and send it through the preprocessor first: The first call to passes as the resource name. But notice ...

Code
Feb 6, 2007
Post comments count0
Post likes count1

Bonus material for The Old New Thing (the book) is now available for download

I've just been informed by my publisher that the bonus chapters from my book are now available for download. Click on "Sample Chapters". Sorry they're late. The source code for the programs in the book can be downloaded from the "Source Code" link. And on a more embarrassing note, there's that "Errata" link, too.

Non-Computer