The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jun 26, 2024
Post comments count 2
Post likes count 1

Is there a built-in way in C++/WinRT to get the string name for a Windows Runtime enum?

Raymond Chen

No, and maybe you don't want to.

Jun 25, 2024
Post comments count 0
Post likes count 1

Microspeak: Fun fork

Raymond Chen

A place to party.

Jun 24, 2024
Post comments count 7
Post likes count 1

Finding a specific value in a sequence of integers that changes by at most 1

Raymond Chen

It's basically a discrete version of the intermediate value theorem.

Jun 21, 2024
Post comments count 1
Post likes count 1

The Windows Runtime winrt::hstring and the C++ std::wstring are inter-assignable

Raymond Chen

Just assign them over, no cermony necessary.

Jun 20, 2024
Post comments count 0
Post likes count 3

How to convert between different types of counted-string string types

Raymond Chen

Looking for constructors that take a character count.

Jun 19, 2024
Post comments count 12
Post likes count 2

On the sadness of treating counted strings as null-terminated strings

Raymond Chen

You're throwing away perfectly good data, there.

Jun 18, 2024
Post comments count 9
Post likes count 1

The time smart quotes prevented the entire Office division from committing code

Raymond Chen

Breaking your tools with your tools.

Jun 17, 2024
Post comments count 5
Post likes count 5

How can I view the list of symbols available in a library?

Raymond Chen

A tool hiding inside another tool.

Jun 14, 2024
Post comments count 3
Post likes count 1

Lock-free reference-counting a TLS slot using atomics, part 3

Raymond Chen

Keeping track of two things at once.