In 2023, the Gävle Goat faces a new threat to its survival December 18, 2023 Dec 18, 2023 12/18/23 Raymond Chen It's bock.
If the RegisterClass function takes ownership of the custom background brush, why is it leaking? December 18, 2023 Dec 18, 2023 12/18/23 Raymond Chen It takes ownership only on success.
How do I specify an optional string parameter to a Windows Runtime method? December 15, 2023 Dec 15, 2023 12/15/23 Raymond Chen Strings are sort of reference but sort of values.
How do I specify an optional parameter to a Windows Runtime method? December 14, 2023 Dec 14, 2023 12/14/23 Raymond Chen There is no way to express explicit optionality, but there are implicit ways.
How can I work around the absence of default parameters in the Windows Runtime? December 13, 2023 Dec 13, 2023 12/13/23 Raymond Chen You can fake it with overloads.
What happens if I define one environment variable in terms of the value of another environment variable? December 12, 2023 Dec 12, 2023 12/12/23 Raymond Chen Only certain types of dependencies are supported.
The mysterious second parameter to the x86 ENTER instruction December 11, 2023 Dec 11, 2023 12/11/23 Raymond Chen For an ABI that probably nobody uses.
A simpler version of the task sequencer that doesn’t promise fairness December 8, 2023 Dec 8, 2023 12/8/23 Raymond Chen Just let a kernel object control the access.
In C++, how can I make a default parameter be the this pointer of the caller? December 7, 2023 Dec 7, 2023 12/7/23 Raymond Chen Again, you can't, but you can fake it.
In C++, how can I make a member function default parameter depend on this? December 6, 2023 Dec 6, 2023 12/6/23 Raymond Chen You can't, but you can fake it.