Showing results for July 2008 - Page 4 of 4 - The Old New Thing

Jul 8, 2008
0
0

The evolution of menu templates: Introduction

Raymond Chen
Raymond Chen

As with dialog templates, menu templates have also gone through a four-stage evolutionary process. People don't often generate menu templates in code, although the function is there waiting for you once you get the urge. As a result, there aren't many questions from people trying to generate menu templates dynamically, but I'm going to go into t...

History
Jul 7, 2008
0
0

Why is the LOADPARMS32 structure so messed up?

Raymond Chen
Raymond Chen

If you look at the LOADPARMS32 structure, you'll find a horrific mishmash. Double-null-terminated strings, a null-terminated string, some WORDs, and even a Pascal-style string. What's going on here? Each of those members comes from a different era in time. The oldest member is the Pascal-style command line, which dates back to CP/M. On CP/M, co...

History
Jul 4, 2008
0
0

Double the usual number of fire alarms today

Raymond Chen
Raymond Chen

Firefighters hate the Fourth of July, the holiday dedicated to blowing up stuff, because when amateurs try to blow up stuff, they often blow up stuff they didn't intend to blow up. One of my friends has a particular unfortunate knack of drawing disasters to his neighborhood. One July 4th, a house in his neighborhood burnt down due to a stray fire...

Non-Computer
Jul 4, 2008
0
0

When anybody can look up your name in the company directory and pay a visit

Raymond Chen
Raymond Chen

In late 2004, I was working in my office, minding my own business. I normally keep my door open, as do most other people. «Knock-knock» I turn around. There's somebody at the door. "Oh, nothing," the person said. "I just wanted to look at you." I closed the door and drew my blinds. What would you have done? (In retrospe...

Non-Computer
Jul 3, 2008
0
0

How did the invalid floating point operand exception get raised when I disabled it?

Raymond Chen
Raymond Chen

Last time, we learned about the dangers of uninitialized floating point variables but left with a puzzle: Why wasn't this caught during internal testing? I dropped a hint when I described how s work: You have to ask the processor to raise an exception when it encounters a signaling NaN, and the program disabled that exception. Why was an excepti...

Code
Jul 2, 2008
0
0

Raymond misreads newspaper head… no wait, I didn’t!

Raymond Chen
Raymond Chen

I have a habit of misreading newspaper headlines, so I simply assumed that this was just another one: Phelps sets word record in 400 IM. (And no, I don't normally read the Rocky Mountain News. The actual headline was printed across the top of the June 30 Seattle Times Sports section, but I couldn't find the headline in the online archives, so I ...

Non-Computer
Jul 2, 2008
0
0

Uninitialized floating point variables can be deadly

Raymond Chen
Raymond Chen

A colleague of mine related to me this story about uninitialized floating point variables. He had a function that went something like this, simplified for expository purposes. The infoType parameter specified which piece of information you're requesting, and depending on what you're asking for, one or the other of the output parameters may not con...

Code
Jul 1, 2008
0
0

András Schiff 2006 lectures on the Beethoven piano sonatas

Raymond Chen
Raymond Chen

In 2006, pianist András Schiff gave a series of eight lecture-recitals covering the complete cycle of Beethoven piano sonatas. Here are all the lectures on one page. (Beware: The metadata on these mp3 files is all over the map.) As an incompetent student of the Beethoven sonatas, I find these lectures absolutely riveting. Note: Schiff...

Non-Computer
Jul 1, 2008
0
0

Windows Vista changed the Alt+Tab order slightly

Raymond Chen
Raymond Chen

For decades, the Alt+Tab order was the same as the Z-order, but that changes in Windows Vista if you use the enhanced Alt+Tab feature known as Flip, which is on by default on most systems. There are three types of interactive task switching in Windows Vista: Classic Alt+Tab continues to show the icons in Z-order order, but the developer who w...

Tips/Support