The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Dec 28, 2023
Post comments count 1
Post likes count 4

On calling Afx­Connection­Advise with bAddRef set to FALSE

Raymond Chen

Playing fast and loose, and eventually you get burnt.

Dec 27, 2023
Post comments count 1
Post likes count 4

What does it mean when the compiler says that it can’t convert something to itself?

Raymond Chen

Why is it even thinking about a conversion?

Dec 26, 2023
Post comments count 1
Post likes count 9

Don’t keep state in your XAML item templates; put the state in the items

Raymond Chen

Beware of temporary alliances.

Dec 25, 2023
Post comments count 3
Post likes count 6

That time the Word team sent presents to the children of WordPerfect’s executive vice president

Raymond Chen

No, it wasn't creepy.

Dec 22, 2023
Post comments count 11
Post likes count 2

If I don’t have any items, what error should my IFolderView::Items method return?

Raymond Chen

It shouldn't return an error at all.

Dec 21, 2023
Post comments count 2
Post likes count 3

How do I get access to the wParam and lParam of the WM_QUERY­END­SESSION method from my MFC message handler?

Raymond Chen

Don't be afraid to see how the macros are built.

Dec 20, 2023
Post comments count 1
Post likes count 1

It rather involved being on the other side of this airtight hatchway: Spoofing another program

Raymond Chen

You already had the power to do it yourself.

Dec 19, 2023
Post comments count 1
Post likes count 1

Microspeak: Locked and loaded

Raymond Chen

Armed and ready, with the suggestion that no further changes will be needed (or accepted).

Dec 18, 2023
Post comments count 1
Post likes count 0

In 2023, the Gävle Goat faces a new threat to its survival

Raymond Chen

It's bock.