Inside C++/WinRT: Apartment switching: Unwinding the stack January 27, 2023 Jan 27, 2023 01/27/23 Raymond Chen Reducing stack usage.
Inside C++/WinRT: Apartment switching: Bypassing the context callback January 26, 2023 Jan 26, 2023 01/26/23 Raymond Chen Reducing stack usage.
Inside C++/WinRT: Apartment switching: Unblocking the outgoing thread January 25, 2023 Jan 25, 2023 01/25/23 Raymond Chen Avoiding the problem of the synchronous apartment-changing callback: Let the outgoing thread do whatever it wants to do next.
Inside C++/WinRT: Apartment switching: The basic idea January 24, 2023 Jan 24, 2023 01/24/23 Raymond Chen Getting back to where you started.
Inside C++/WinRT: Coroutine completions: The oversimplified version January 23, 2023 Jan 23, 2023 01/23/23 Raymond Chen Resuming the coroutine when the asynchronous work completes.
How can I call a method on a derived class from a base class, say, to get a strong reference to the containing object? January 20, 2023 Jan 20, 2023 01/20/23 Raymond Chen A variety of patterns are available.
Windows Runtime asynchronous operations can fail in two different ways, so make sure you get them both January 19, 2023 Jan 19, 2023 01/19/23 Raymond Chen Fail me now or fail me later.
It rather involved being on the other side of this airtight hatchway: Attacking a user by modifying that user’s files January 18, 2023 Jan 18, 2023 01/18/23 Raymond Chen You're just attacking yourself.
A trio of dubious denial-of-service security vulnerability reports which are just style points piled on top of nothing January 17, 2023 Jan 17, 2023 01/17/23 Raymond Chen You could have accomplished the same thing with a garbage file.
Making C++ primitive types meaningfully movable when they have sentinel values January 16, 2023 Jan 16, 2023 01/16/23 Raymond Chen The value actually moves now.