The Old New Thing
Practical development throughout the evolution of Windows.
Latest posts

Why does C++ think my class is copy-constructible when it can’t be copy-constructed?

You said that you had a copy constructor, even though it can't be compiled.

Why do some Windows functions fail if I pass an unaligned Unicode string?

Well, if you don't align it, then you've already broken the rules.

Riffing on a typo in the name of the opera Turandot

On the dot.

How can I programmatically find the network path by which a folder has been shared?

There is no direct query. You'll have to infer it.

The symbolism of the magnifying glass is not universal

Just making things bigger?

Stating the obvious about debugging an invalid parameter error when freeing memory

Writing it down for posterity.

Using an oracle to see where your code is producing the wrong output

If there is a reference implementation, then use it as a check.

The case of creating new instances when you wanted to use the same one

C++ language backward compatibility makes legal what you had hoped wasn't.

How do I convert a WIC bitmap back to a GDI HBITMAP
?

You can copy the bits into a DIB section.