C++/WinRT performance trap: Switching to Windows Runtime too soon March 1, 2024 Mar 1, 2024 03/1/24 Raymond Chen Stay in the devirtualized world until you are forced to leave.
If a parameter isn’t used, what should I pass? February 29, 2024 Feb 29, 2024 02/29/24 Raymond Chen It doesn't matter what you pass, but if you have to ask, then just pass zero.
On the whole idea of giving away a reference to yourself at destruction February 28, 2024 Feb 28, 2024 02/28/24 Raymond Chen Hey, at least it's possible.
A C# LINQ one-liner to check if exactly one of a set of conditions is met February 26, 2024 Feb 26, 2024 02/26/24 Raymond Chen Maybe not the most efficient, but it's easy to write.
Gotcha: Be careful how you shut down your dispatcher queues February 23, 2024 Feb 23, 2024 02/23/24 Raymond Chen The dispatcher queue thread isn't useful after it has shut down, so don't try anything.
Gotcha: Don’t forget to shut down your dispatcher queues February 22, 2024 Feb 22, 2024 02/22/24 Raymond Chen Keep that dispatcher queue controller around, or you'll never be able to clean up.
Once your object reaches final_release, you are committed to destructing it (eventually) February 21, 2024 Feb 21, 2024 02/21/24 Raymond Chen Don't try to resurrect it.
Why can’t I trigger a manual blue screen crash by injecting the magic key sequence? February 19, 2024 Feb 19, 2024 02/19/24 Raymond Chen It has to come from the physical keyboard, because that's the code that detects the magic key sequence.
If you’re just going to sit there doing nothing, at least do nothing correctly February 16, 2024 Feb 16, 2024 02/16/24 Raymond Chen How to be inert.
Registered command lines are just command lines, not a programming language February 15, 2024 Feb 15, 2024 02/15/24 Raymond Chen If you want a programming language, you know where to find one.