Feb 2, 2026 Post comments count5 Post likes count2 Studying compiler error messages closely: Input file paths Raymond Chen Are you even compiling the correct file?
Jan 30, 2026 Post comments count1 Post likes count1 Why not store the SAFEARRAY reference count as a hidden allocation next to the SAFEARRAY? Raymond Chen The case of "Bring your own SAFEARRAY."
Jan 29, 2026 Post comments count1 Post likes count2 How can I retain access to the data in a SAFEARRAY after my method returns? Raymond Chen Find a way to take ownership.
Jan 28, 2026 Post comments count0 Post likes count1 Why did I lose the data even though I called SafeArrayAddRef? Raymond Chen You have to use the original pointer, but even that won't be good enough.
Jan 27, 2026 Post comments count2 Post likes count2 A digression on the design and implementation of SafeArrayAddRef and extending APIs in general Raymond Chen The concerns when adding a feature to an existing API.
Jan 26, 2026 Post comments count0 Post likes count3 What’s the difference between SafeArrayAccessData and SafeArrayAddRef? Raymond Chen Two ways of preserving the data.
Jan 23, 2026 Post comments count15 Post likes count6 C++ has scope_exit for running code at scope exit. C# says “We have scope_exit at home.” Raymond Chen You can wrap it in an IDisposable.
Jan 22, 2026 Post comments count6 Post likes count3 A simple helper function for attaching a progress handler to a Windows Runtime IAsyncActionWithProgress or IAsyncOperationWithProgress Raymond Chen It doesn't do much, but it saves typing.
Jan 21, 2026 Post comments count2 Post likes count2 On the proper usage of a custom Win32 dialog class Raymond Chen You are replacing the window procedure, not the dialog procedure.
Jan 20, 2026 Post comments count5 Post likes count2 Microspeak: On fire, putting out fires Raymond Chen Dealing with emergencies.