Oct 6, 2025 Post comments count10 Post likes count3 Code comments should apply to the state of the system at the point the comment “executes” Raymond Chen Putting them in the flow.
Oct 3, 2025 Post comments count2 Post likes count2 Can we get weak functions for static linking? The Visual C++ compiler says “We have weak functions at home” Raymond Chen It's already there, just under a different paradigm.
Oct 2, 2025 Post comments count0 Post likes count1 The problem with inferring from a function call operator is that there may be more than one Raymond Chen auto parameters make this easy to write, particularly for lambdas.
Oct 1, 2025 Post comments count1 Post likes count3 How do I convert a FILETIME to a C++ clock like std::system_clock or winrt::clock? Raymond Chen The winrt::clock has a conversion for you.
Sep 29, 2025 Post comments count1 Post likes count3 How can I enumerate the overflow icons in the Notification Area without showing them? Raymond Chen If they aren't shown, then they aren't automatable, so there's no requirement that they exist in the UI automation tree.
Sep 24, 2025 Post comments count13 Post likes count8 Why is Windows still tinkering with critical sections? Raymond Chen The critical section may be an old dog, but it's still learning new tricks.
Sep 19, 2025 Post comments count1 Post likes count1 Learning to read C++ compiler errors: Not a legal base class Raymond Chen What would make it an illegal base class?
Sep 18, 2025 Post comments count6 Post likes count2 Can I close a duplicate handle while I’m waiting on the original? Raymond Chen That's fine, since you're not closing the handle that you're waiting on.
Sep 17, 2025 Post comments count1 Post likes count2 How can I get my shell thumbnail extractors to run in the same process? Raymond Chen Adding another level of indirection.
Sep 12, 2025 Post comments count4 Post likes count5 How can I convert a third party in-process server so it runs in the COM surrogate? Raymond Chen You can put your own object in the surrogate first.