Showing results for May 2009 - The Old New Thing

May 29, 2009
0
0

Alternatives to using the #error directive to check whether the compiler even sees you

Raymond Chen
Raymond Chen

In response to my description of how you can use the #error directive to check whether the compiler even sees you, some commenters proposed alternatives. I never claimed that my technique was the only one, just that it was another option available to you. Here are some other options. scott suggested merely typing asdasdasd into the header file ...

Code
May 28, 2009
0
0

An unexpected application of the First Law of Thermodynamics

Raymond Chen
Raymond Chen

This past winter, my furnace failed catastrophically. (The furnace repair person told me that when furnaces fail, it tends to be catastrophic failure.) It was a few days before everything was back in order, and the very day everything was working again, the furnace belonging to one of my relatives stopped working. This was an application of the ...

Non-Computer
May 26, 2009
0
0

How to hide privacy violations in a privacy disclosure statement, part 2

Raymond Chen
Raymond Chen

It seems that nearly every privacy statement somebody sends me doesn't actually protect my privacy. They start out saying all sorts of great things, like Company X is committed to maintaining the privacy of its customers. After the section listing what information they collect, there's the section describing who they will disclose it to...

Non-ComputerReading the fine print
May 25, 2009
0
0

The latest installment of Wallace and Gromit coming to Seattle

Raymond Chen
Raymond Chen

The Seattle International Film Festival is under way, and you get only one chance to see Wallace and Gromit: A Matter of Loaf and Death, featuring our favorite inventor/cheese-aficionado and his trusty sidekick on their latest animated adventure. Be there on Saturday morning, but please leave the Stinking Bishop at home...

Non-Computer
May 25, 2009
0
0

Why can’t you change the alignment of an edit control after it has been created?

Raymond Chen
Raymond Chen

Commenter Kevin Eshbach asks why you cannot programatically change the text centering style of an edit control after the control has been created. The edit control is one of the original window manager controls, so it comes with a lot of history. First thing to note is that the message did not exist until Windows 95. The edit control ...

Code