I’ve heard that Windows 8 development will allow XAML/HTML5 + C++ apps, but is it native unmanaged C++ or managed C++ (formerly C++ .NET) ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Windows Runtime (WinRT) is itself a native unmanaged framework, but can be called from managed .NET languages in easy way (compared to other native libraries and the infamous
P/Invoke).But besides using it from managed languages it can also be called from C++/CX. This is a Microsoft extension of standard C++ similar to .NET’s C++/CLI. But in contrast to the latter it is entirely native unmanaged C++. But it supports some of C++/CLI’s extensions, like the
^operator for “managed-like” pointers. But under the hood those are not actually managed garbage collected pointers, but native reference-counted pointers, similar to say astd::shared_ptr. And it also supports .NET-like properties and delegates, I think, as well as partial classes in order to work with WinRT‘s XAML framework.Besides that you can even use WinRT from standard C++ using the so-called Windows Runtime C++ Template Library (WRL), though it is said to be more-cumbersome than with C++/CX and you may not be able to use all features, like easy XAML interfacing, not sure about that.