Jul 21, 2021 Post comments count4 Post likes count1 I know I can change the color of the DC pen, but what about the other attributes? Raymond Chen They're locked in, sorry.
Jul 19, 2021 Post comments count1 Post likes count1 C++11 braced initialization made the impossible possible (and how to fix it so it stays impossible) Raymond Chen Braced initialization to the rescue, or denied.
Jul 16, 2021 Post comments count4 Post likes count1 What’s the difference between throwing a winrt::hresult_error and using winrt::throw_hresult? Raymond Chen It affects the error origination.
Jul 15, 2021 Post comments count0 Post likes count1 On proper handling of buffers in COM and RPC methods Raymond Chen The RPC layer deals with most of the problems for you, assuming you're using the RPC layer.
Jul 14, 2021 Post comments count10 Post likes count1 How to perform more complicated search and replace-style renaming in a batch file Raymond Chen Try something other than wildcards.
Jul 12, 2021 Post comments count1 Post likes count2 Why do smart pointers null out the wrapped pointer before destroying it? Raymond Chen It's not a race condition, but it's some condition.
Jul 9, 2021 Post comments count2 Post likes count1 On the perils of holding a lock across a coroutine suspension point, part 3: Solutions Raymond Chen How to avoid the trap.
Jul 8, 2021 Post comments count0 Post likes count1 On the perils of holding a lock across a coroutine suspension point, part 2: Nonrecursive mutexes Raymond Chen Another way things can go wrong.
Jul 7, 2021 Post comments count3 Post likes count2 On the perils of holding a lock across a coroutine suspension point, part 1: The set-up Raymond Chen One way things can go wrong.
Jul 2, 2021 Post comments count3 Post likes count1 Is it okay to call MapViewOfFile on the same mapping handle simultaneously from different threads? Raymond Chen Or do you have to enforce serialization to ensure both calls succeed?