Showing results for July 2007 - Page 3 of 5 - The Old New Thing

Jul 17, 2007
0
0

Not my finest hour: Driving a manual transmission

Raymond Chen
Raymond Chen

Sara Ford messed up her leg last month; you can see her on ScooterCam-1 at TechEd 2007. The best part of the name ScooterCam-1 isn't the ScooterCam; it's the 1. That just gives it that extra little kitchy space technology feel that turns a good name into a great name. Anyway, she asked around if somebody with a car with an automatic transm...

Non-Computer
Jul 17, 2007
0
0

How are window manager handles determined in Windows NT?

Raymond Chen
Raymond Chen

We left off our story last time by raising the problem of programs that send messages to windows that have already been destroyed and how window handle re-use exacerbates the problem. Although this is clearly a bug in the programs that use window handles after destroying the window, the problem is so widespread that the window manager folks in Wind...

History
Jul 16, 2007
0
0

Creative armed robbery defense: Political asylum

Raymond Chen
Raymond Chen

Step 1: Rob bank. Step 2: Flee the country. Step 3: Claim political asylum because the robbery was a form of political protest. It's creative, I have to grant you that. The theory is that Canadian law prohibits extradition for political crimes. Though it's a strange defense to say "If I did it, it was politically motivated." I...

Non-Computer
Jul 16, 2007
0
0

How are window manager handles determined in 16-bit Windows and Windows 95?

Raymond Chen
Raymond Chen

(Prefatory remark: The following information is of the "behind the scenes" nature and does not constitute formal documentation. Actually, nothing I write counts as formal documentation, so I shouldn't have needed to write that, but people sometimes intentionally play stupid and interpret all forms of the future tense as if I were making some sort ...

History
Jul 13, 2007
0
0

The dangers of conversation fragments: Overheard on the Burke-Gilman trail

Raymond Chen
Raymond Chen

This past weekend, a group of us went on one last training ride before the STP, which begins tomorrow. The Burke-Gilman is a multipurpose trail, with bicyclists sharing the path with walkers, joggers, inline skaters, sometimes even people on horseback. (Inline nitpicker's corner: The horseback riders are on the Sammamish River Trail, which is tech...

Non-ComputerSTP
Jul 13, 2007
0
0

I was sort of interested at first, but now I'm not so sure any more

Raymond Chen
Raymond Chen

Some time ago, there was a product under development that was starting to get some buzz, so I thought I'd go check it out. I went to the product's Web site, but the product was so new that they didn't have any substantial information available. The only way to learn about the product was to download the documentation. And before they would let me d...

Other
Jul 12, 2007
0
0

Seattle street signs for sale, used, but for ten bucks you can't complain

Raymond Chen
Raymond Chen

The city of Seattle has begun a nine-year program of upgrading its street signs, and the city has decided to make the old signs available to the public for purchase. When you see the signs on your street replaced, you can go to the Buy a Sign page to buy the old one. It looks like signs in average condition are going for $10, whereas signs in belo...

Non-Computer
Jul 12, 2007
0
0

If you want a modeless dialog, then create a modeless dialog already

Raymond Chen
Raymond Chen

Somebody I'd never heard of sent me email with a general programming question. (This is one of the top ways of instantly making me not interested in talking to you.) I have a modal dialog box which I hide with , and I want to enable the parent window so the parent window will get focus and keyboard input. Is this possible? If so, how do I do it?...

Code
Jul 11, 2007
0
0

How to check for errors from SetFilePointer

Raymond Chen
Raymond Chen

The function reports an error in two different ways, depending on whether you passed as the parameter. The documentation in MSDN is correct, but I've discovered that people prefer when I restate the same facts in a different way, so here comes the tabular version of the documentation. I'd show some sample code, but the documentation in MSDN ...

Code