The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Inside STL: The map, set, multimap, and multiset
Aug 7, 2023
Post comments count 6
Post likes count 4

Inside STL: The map, set, multimap, and multiset

Raymond Chen
Raymond Chen

A red-black tree.

Inside STL: The lists
Aug 4, 2023
Post comments count 3
Post likes count 6

Inside STL: The lists

Raymond Chen
Raymond Chen

Your traditional singly- or doubly-linked list.

Inside STL: The string
Aug 3, 2023
Post comments count 6
Post likes count 8

Inside STL: The string

Raymond Chen
Raymond Chen

An allocation, with a twist.

Inside STL: The vector
Aug 2, 2023
Post comments count 6
Post likes count 6

Inside STL: The vector

Raymond Chen
Raymond Chen

A contiguous memory block, reallocated as necessary.

Inside STL: The pair and the compressed pair
Aug 1, 2023
Post comments count 7
Post likes count 7

Inside STL: The pair and the compressed pair

Raymond Chen
Raymond Chen

Two fields in one object, how hard can it be?

Misinterpreting the misleadingly-named <CODE>STATUS_<WBR>STACK_<WBR>BUFFER_<WBR>OVERRUN</CODE>
Jul 31, 2023
Post comments count 4
Post likes count 3

Misinterpreting the misleadingly-named STATUS_STACK_BUFFER_OVERRUN

Raymond Chen
Raymond Chen

The subcode tells you why we stopped executing, and it's rarely because of a stack buffer overflow.

How to split off an older copy of a file while preserving git line history
Jul 28, 2023
Post comments count 1
Post likes count 0

How to split off an older copy of a file while preserving git line history

Raymond Chen
Raymond Chen

Variation on a theme.

Perfect forwarding forwards objects, not braced things that are trying to become objects
Jul 27, 2023
Post comments count 0
Post likes count 0

Perfect forwarding forwards objects, not braced things that are trying to become objects

Raymond Chen
Raymond Chen

Before you can forward something, it needs to be a something.

On the various ways of creating Windows Runtime delegates in C++/WinRT and C++/CX
Jul 26, 2023
Post comments count 0
Post likes count 1

On the various ways of creating Windows Runtime delegates in C++/WinRT and C++/CX

Raymond Chen
Raymond Chen

Comparing and contrasting.