May 23, 2018 Post comments count0 Post likes count1 If you say that your buffer can hold 200 characters, then it had better hold 200 characters Raymond Chen Otherwise the mistake is on you.
May 17, 2018 Post comments count0 Post likes count1 How do I create a SAL annotation for a structure with a variable-length array? Raymond Chen The _Field_size_ annotation does the trick.
May 16, 2018 Post comments count0 Post likes count1 C++ namespace parlor tricks Raymond Chen Shuffling names around.
May 11, 2018 Post comments count0 Post likes count1 Why can’t FindWindowEx find another program’s window by name? Raymond Chen Are you sure it's there?
May 10, 2018 Post comments count0 Post likes count2 On the difficulty of getting pixel-perfect layout in Win32 dialog templates Raymond Chen That's not what it's for.
May 9, 2018 Post comments count0 Post likes count1 Why does my shortcut to a nonexistent file end up with spaces changed to underscores? Raymond Chen Trying to make the best of a bad situation.
May 7, 2018 Post comments count0 Post likes count1 After all, it’s called a hotkey, not a hotcharacter Raymond Chen Hotkeys are based on keys.
May 4, 2018 Post comments count0 Post likes count1 Avoiding deadlocks when cancelling a thread pool callback, part 2: Referring back to the containing object Raymond Chen Run it, but only as long as I still exist.
May 3, 2018 Post comments count0 Post likes count1 Avoiding deadlocks when cancelling a thread pool callback, part 1: External callback data Raymond Chen Breaking the deadlock by disassociating from the thread pool.
May 2, 2018 Post comments count0 Post likes count1 How to avoid accessing freed memory when canceling a thread pool callback Raymond Chen Making sure everybody is done before you free it.