The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 24, 2016
Post comments count 0
Post likes count 1

A static_cast is not always just a pointer adjustment

Raymond Chen

That null pointer thingie.

Feb 23, 2016
Post comments count 0
Post likes count 1

Why does the date disappear from my taskbar, sometimes?

Raymond Chen

Because there's no room for it.

Feb 22, 2016
Post comments count 0
Post likes count 2

Finding the shortest binary string in a given interval

Raymond Chen

Narrowing in.

Feb 19, 2016
Post comments count 0
Post likes count 1

When I try to calculate a performance counter manually, the answer is off by a factor of 100

Raymond Chen

Because it's a percentage.

Feb 18, 2016
Post comments count 0
Post likes count 1

Nasty gotcha: VarCmp vs VariantCompare

Raymond Chen

Similar names, different return values.

Feb 17, 2016
Post comments count 0
Post likes count 1

Don’t just grab the foreground window and host UI on it, redux

Raymond Chen

Oops, it's not there any more.

Feb 16, 2016
Post comments count 0
Post likes count 1

If I select multiple files of different types, why does the Open verb disappear?

Raymond Chen

It won't always work.

Feb 15, 2016
Post comments count 0
Post likes count 1

How can I get the name for the user’s profile directory that is shown in Explorer?

Raymond Chen

You ask the shell namespace.