The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

What are the duck-typing requirements of WRL <CODE>ComPtr</CODE>?
May 11, 2023
Post comments count 0
Post likes count 2

What are the duck-typing requirements of WRL ComPtr?

Raymond Chen
Raymond Chen

Another round of experimentation.

What are the duck-typing requirements of ATL <CODE>CComPtr</CODE>?
May 10, 2023
Post comments count 1
Post likes count 1

What are the duck-typing requirements of ATL CComPtr?

Raymond Chen
Raymond Chen

Looking for the minimum requirements.

What are the duck-typing requirements of MFC <CODE>IPTR</CODE>?
May 9, 2023
Post comments count 0
Post likes count 1

What are the duck-typing requirements of MFC IPTR?

Raymond Chen
Raymond Chen

Seeing what goes wrong and trying to fix it.

What are the duck-typing requirements of <CODE>_com_ptr_t</CODE>?
May 8, 2023
Post comments count 1
Post likes count 2

What are the duck-typing requirements of _com_ptr_t?

Raymond Chen
Raymond Chen

As long as you fulfill the contract, based on method names.

The case of the crash in a C++/WinRT coroutine: Unpeeling the onion
May 5, 2023
Post comments count 3
Post likes count 1

The case of the crash in a C++/WinRT coroutine: Unpeeling the onion

Raymond Chen
Raymond Chen

Digging deeper and deeper.

Why does XAML complain that none of the overloads of <CODE>winrt::to_hstring</CODE> could be used?
May 4, 2023
Post comments count 0
Post likes count 1

Why does XAML complain that none of the overloads of winrt::to_hstring could be used?

Raymond Chen
Raymond Chen

Look at what you are converting from and converting to.

What can I do if I don’t want my file version number to be a sequence of four integers?
May 3, 2023
Post comments count 7
Post likes count 3

What can I do if I don’t want my file version number to be a sequence of four integers?

Raymond Chen
Raymond Chen

The format is enforced by the Windows file format, but you can present the information in a custom way.

Why does Task Manager disappear briefly when you switch it into or out of <I>Always on top</I>?
May 2, 2023
Post comments count 21
Post likes count 3

Why does Task Manager disappear briefly when you switch it into or out of Always on top?

Raymond Chen
Raymond Chen

Ascending to another plane of existence.

How is it even possible to cheat on a musical performance practical exam?
May 1, 2023
Post comments count 3
Post likes count 3

How is it even possible to cheat on a musical performance practical exam?

Raymond Chen
Raymond Chen

Nature finds a way.