Requesting FAQ regarding relationship between C++/Win32 and C++/WinRT
I’m a little confused. I’ve been hiding under the MFC rock for a couple decades and would really like to enter the modern era. It looked as if C++/WinRT with WINUI 3 was the way to go, but then C++/Win32 showed up.
In the GitHub cppwin32 project README.md you state, “This projection is similar to C++/WinRT”, but that’s the only intimation of any relationship between the two.
Clearly, C++/WinRT is more mature than /Win32, but it appears that the former could easily get obsoleted by the latter. C++/Win32 is the one that is mentioned on the Project Reunion website, so it appears to be favored.
I'm really hesitant to start writing code that depends on either /Win32 or /WinRT when I believe that either is a gamble.
It would be very helpful if the FAQ included an answer clarifying the relationship between C++/Win32 and C++/WinRT. Is it safe to write code for either?
This is understandably a little confusing as no one is actually working on C++/Win32 at the moment.
C++/Win32 is the one that is mentioned on the Project Reunion website
I couldn't find a single reference to C++/Win32 on Project Reunion - can you share a link?
I would rather see support for Win32 metadata added to C++/WinRT directly (like what we offer for Rust), but that is not a priority right now. This is also mentioned in the C++/Win32 readme.
What I can say is that C++/WinRT is very mature and used extensively by Microsoft and other software engineers. It is here to stay.
Thanks for the quick response. C++/Win32 is referenced 5x on this page: https://docs.microsoft.com/en-us/windows/apps/project-reunion/ I should note that C++/WinRT also garners one mention.
There is also one mention of C++/Win32 on https://docs.microsoft.com/en-us/windows/apps/project-reunion/deploy-apps-that-use-project-reunion
Perhaps the best way to solve my confusion is to change these pages. I realize that Project Reunion is at version 0.5, so a little confusion is expected.
I notice that you reference a possible convergence on this page: https://github.com/microsoft/cppwin32 That's encouraging.
@jonwis / @stevewhims do you know who owns the doc pages above? They incorrectly refer to C++/Win32 when they should be referring to C++/WinRT instead.
Yes, adding @mcleanbyron for info. McLean, let me know, I'll be happy to make those changes if you prefer. See the two links in the comment above to the Reunion content.
Thanks for the feedback. In the case of the articles mentioned here, "C++/Win32" isn't referring to a specific technology like C++/WinRT, but instead is a general term that refers to any desktop Windows application written in C++ (this includes applications that use C++/WinRT, but can also include other C++ Windows desktop apps). These same articles similarly use the term "C#/.NET 5" when referring generally to C# apps that target .NET 5. I see how this is confusing, and I'll follow up on making some changes to the "C++/Win32" term avoid this confusion.
Thanks @mcleanbyron for responding to this! Do you want to keep this issue open to track investigating making changes to this, or are you tracking that elsewhere? Thanks!
It makes sense to keep this issue open to track the doc updates called out here. I should have them done next week, and will follow back up with this when they're done.
The references to "C++/Win32" have been scrubbed out of the articles mentioned in this issue (https://docs.microsoft.com/en-us/windows/apps/project-reunion/ and https://docs.microsoft.com/en-us/windows/apps/project-reunion/deploy-apps-that-use-project-reunion), and from many other articles. Instead, these articles now use general terms like "C++ desktop (Win32)" or simply "C++ desktop".
@andrewleader - I think you can close this issue now (I don't have permissions).
Thanks to all of you for clearing this up!