Showing results for June 2010 - Page 2 of 4 - The Old New Thing

Jun 21, 2010
0
0

Wow, a task bar, what a novel idea

Raymond Chen
Raymond Chen

Some of my colleagues were struck by a sentence in this old Newsweek article about Microsoft's advertising campaign from last year. The sentence wasn't about the ad campaign, though. It was about Windows 7: The user interface has a slick new feature, a "taskbar" at the bottom that shows what apps you have open. The new system is due out lat...

Other
Jun 18, 2010
0
0

Bug Bash: It's funny because it's true

Raymond Chen
Raymond Chen

Hans Bjordahl's Bug Bash is one of those it's funny because it's true comics about life inside a software company. Specifically, Microsoft, where Hans worked for many years and whose internal newsletter featured Hans's strip. (Some might argue that Bug Bash was the only part of the company newsletter worth reading.) Today I'm going to share tw...

Non-Computer
Jun 17, 2010
0
0

As random as I wanna be: Why cmd.exe's %RANDOM% isn't so random

Raymond Chen
Raymond Chen

Somebody on my team reported that a particular script in our project's build process would fail with bizarre output maybe once in fifty tries. This script was run from a , and the result was a failed build. Rerunning make fixed the problem, but that's not much consolation when the build lab encounters it approximately every other day. The strange ...

Tips/Support
Jun 16, 2010
0
0

Why can't AppLocale just be added to the Compatibility property sheet page?

Raymond Chen
Raymond Chen

Commenter DoesNotMatter wants to know why AppLocale cannot just be added to the Compatibility property sheet as a dropdown option. One of the things about having a huge topic backlog is that if I just wait long enough, there's a good chance somebody else will answer it, and then I don't have to write anything. And more often than not, that somebo...

Other
Jun 15, 2010
0
1

What does the PRE in PREfast stand for?

Raymond Chen
Raymond Chen

Commenter Jeff asks what the PRE in PREfast stands for. It's an inside joke. The Microsoft Programmer Productivity Research Center (MSPPRC) originally produced a tool called PREfix. Michael Howard put me in touch with the development team, and they explained that it was called PREfix because it helps you fix your bugs before (PRE) you even run...

History
Jun 14, 2010
0
0

Hunting for loopholes in Washington state's driving-while-phoning-or-texting law

Raymond Chen
Raymond Chen

Last week, a law went into effect in the state of Washington which makes driving while texting or using a hand-held phone a primary offense, meaning that you can be pulled over for doing it. (Previously, it was a secondary offense, which means that the officer must have some other reason for pulling you over.) One of my colleagues studied the new...

Non-Computer
Jun 14, 2010
0
0

Annotating function parameters and using PREfast to check them

Raymond Chen
Raymond Chen

Via the suggestion box, Sys64738 asks, whether I think is a good C/C++ programming style to add IN and OUT to function prototypes. Remember, this is my opinion. Your opinion may validly differ. I would go beyond just IN and OUT and step up to SAL annotations, which describe the semantics of function parameters in more detail than simply IN and ...

Code
Jun 11, 2010
0
0

How do I indicate that I want my window to follow right-to-left layout rules?

Raymond Chen
Raymond Chen

There are many ways, depending on how wide a scope you want. If there is one specific window that you want to follow right-to-left layout rules, then you pass the extended window style when you create the window. This extended style is inherited by child windows, so once you set a top-level window to have right-to-left layout, all child windows w...

Code