Why does SetFocus fail without telling me why? June 14, 2019 Jun 14, 2019 06/14/19 Raymond Chen If you're going to replace part of the operating system, you have to replace the side effects, too.
What should you do if somebody passes a null pointer for a parameter that should never be null? What if it’s a Windows Runtime class? June 13, 2019 Jun 13, 2019 06/13/19 Raymond Chen They messed up, so make them suffer the consequences, but make the consequences diagnosable.
If you can use GUIDs to reference files, why not use them to remember “recently used” files so they can survive renames and moves? June 12, 2019 Jun 12, 2019 06/12/19 Raymond Chen Because the file that you think is the same file may not actually be the same file.
What order do the items in the “New” menu appear? It looks kind of random. June 11, 2019 Jun 11, 2019 06/11/19 Raymond Chen It's alphabetical order, but not in the obvious way.
How can I determine in a C++ header file whether C++/CX is enabled? How about C++/WinRT? June 10, 2019 Jun 10, 2019 06/10/19 Raymond Chen For conditionally enabling features, say.
The Resource Compiler defaults to CP_ACP, even in the face of subtle hints that the file is UTF-8 June 7, 2019 Jun 7, 2019 06/7/19 Raymond Chen Subtlety is not its strong point.
Why does my C++/WinRT project get errors of the form "Unresolved external symbol void* __cdecl winrt_make_YourNamespace_YourClass(void)"? June 6, 2019 Jun 6, 2019 06/6/19 Raymond Chen You enabled optimizations, but there's some extra bookkeeping to support those optimizations.
Why does my C++/WinRT project get errors of the form ‘winrt::impl::produce<D, I>‘: cannot instantiate abstract class, missing method GetBindingConnector June 5, 2019 Jun 5, 2019 06/5/19 Raymond Chen The header file requirement was always present, but you often got away with omitting it. Not so much any more.
In the file copy conflict dialog, what happened to the option to copy the new file with a numeric suffix? June 4, 2019 Jun 4, 2019 06/4/19 Raymond Chen It's still there, but you have to dig a little deeper for it.
A bug so cool that the development team was reluctant to fix it June 3, 2019 Jun 3, 2019 06/3/19 Raymond Chen A nice parlor trick, if you had the memory for it.