The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

How does Explorer find the “first” icon in a file
Feb 10, 2025
0
0

How does Explorer find the “first” icon in a file

Raymond Chen
Raymond Chen

It enumerates them and takes the first one, so this is really a question about enumeration.

Using alternate locales to get more interesting case mapping than the C
Feb 7, 2025
1
2

Using alternate locales to get more interesting case mapping than the C

Raymond Chen
Raymond Chen

Looking for something better.

The default C locale is not a very interesting one
Feb 6, 2025
7
0

The default C locale is not a very interesting one

Raymond Chen
Raymond Chen

It barely understands anything.

On exactly when XAML bindings are evaluated if an element is not yet loaded
Feb 5, 2025
4
0

On exactly when XAML bindings are evaluated if an element is not yet loaded

Raymond Chen
Raymond Chen

It depends on which abstraction you prefer.

The original name for Flexible Single Master Operations in Active Directory
Feb 4, 2025
2
2

The original name for Flexible Single Master Operations in Active Directory

Raymond Chen
Raymond Chen

Not that kind of F-word.

On trying to log an exception as it leaves your scope
Feb 3, 2025
2
2

On trying to log an exception as it leaves your scope

Raymond Chen
Raymond Chen

You can't watch it from an object on the outside.

Creating a generic insertion iterator, part 2
Jan 31, 2025
1
1

Creating a generic insertion iterator, part 2

Raymond Chen
Raymond Chen

Satisfying the iterator requirements, perhaps with a little cheating.

Creating a generic insertion iterator, part 1
Jan 30, 2025
0
1

Creating a generic insertion iterator, part 1

Raymond Chen
Raymond Chen

We provide the boilerplate; you provide the smarts.

How do I create an inserter iterator that does unhinted insertion into an associative container like <CODE>std::map</CODE>?
Jan 29, 2025
6
1

How do I create an inserter iterator that does unhinted insertion into an associative container like std::map?

Raymond Chen
Raymond Chen

Curiously missing from the standard library.