Visual C++ component extensions (C++/CX) is a set of extensions to the C++ language that enable the creation of Windows Store apps and Windows Runtime components in an idiom that is as close as possible to modern C++. Use C++/CX to write Windows Store apps and components in native code that easily interact with Visual C#, Visual Basic, and JavaScript, and other languages that support the Windows Runtime. In those rare cases that require direct access to the raw COM interfaces, or non-exceptional code, you can use the Windows Runtime C++ Template Library (WRL) (WRL).
The new model represents the next generation of native C++ programming on Windows. By using it, you can create:
-
C++ Windows Store apps that use XAML to define the user interface and use the native stack. For more information, see Create your first Windows Store app using C++.
-
C++ Windows Runtime components that can be consumed by JavaScript-based Windows Store apps. For more information, see Creating Windows Runtime Components in C++.
-
Windows Store DirectX games and graphics-intensive apps. For more information, see Create your first Windows Store app using DirectX.