Mar 29, 2024 Post comments count10 Post likes count4 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 Post comments count8 Post likes count2 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 Post comments count9 Post likes count4 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 Post comments count2 Post likes count3 Dubious security vulnerability: Manual operations can cause a program to hang Raymond Chen You did this to yourself.
Mar 25, 2024 Post comments count0 Post likes count3 Why isn’t C++ using my default parameter to deduce a template type? Raymond Chen Trying to have it both ways.
Mar 22, 2024 Post comments count7 Post likes count1 Why does my thread get a broken string as its initial parameter? Raymond Chen It got converted too late.
Mar 21, 2024 Post comments count13 Post likes count0 Using the DisplayInformation class from a desktop Win32 application, part 2 Raymond Chen Completing the prerequisites.
Mar 20, 2024 Post comments count3 Post likes count1 Using the DisplayInformation class from a desktop Win32 application, part 1 Raymond Chen A little interop music.
Mar 19, 2024 Post comments count0 Post likes count0 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 Post comments count0 Post likes count0 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.