Mar 29, 2024 10 2 How can I tell C++ that I want to discard a nodiscard value? Raymond Chen A variety of tricks, with different degrees of readability and legality.
Mar 28, 2024 8 2 I called CreateEnvironmentBlock with a process’s token, but I didn’t get that process’s environment Raymond Chen That's not what the CreateEnvironmentBlock function does.
Mar 27, 2024 9 4 Some choices for encrypting data so that it can be decrypted only by the same user or computer Raymond Chen There's your classic, and there's some newfangled stuff.
Mar 26, 2024 2 3 Dubious security vulnerability: Manual operations can cause a program to hang Raymond Chen You did this to yourself.
Mar 25, 2024 0 3 Why isn’t C++ using my default parameter to deduce a template type? Raymond Chen Trying to have it both ways.
Mar 22, 2024 7 1 Why does my thread get a broken string as its initial parameter? Raymond Chen It got converted too late.
Mar 21, 2024 13 0 Using the DisplayInformation class from a desktop Win32 application, part 2 Raymond Chen Completing the prerequisites.
Mar 20, 2024 3 1 Using the DisplayInformation class from a desktop Win32 application, part 1 Raymond Chen A little interop music.
Mar 19, 2024 0 0 How well does C++/WinRT com_ptr support class template argument deduction (CTAD)? Raymond Chen It doesn't even try, and probably doesn't want you to do it.
Mar 18, 2024 0 0 How well does wil com_ptr support class template argument deduction (CTAD)? Raymond Chen Falling into a hole in the C++ language, not filled in until C++20.