Windows Dev Center

Visual C++ Language Reference (C++/CX)


Visual C++ component extensions (C++/CX) is a set of extensions to the C++ language that enable the creation of Windows apps and Windows Runtime components in an idiom that is as close as possible to modern C++. Use C++/CX to write Windows 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).

The new model represents the next generation of native C++ programming on Windows. By using it, you can create:

Quick Reference (C++/CX)

Table of keywords and operators for Visual C++ component extensions (C++/CX).

Type System (C++/CX)

Describes basic C++/CX types and programming constructs, and how to utilize C++/CX to consume and create Windows Runtime types.

Building apps and libraries (C++/CX)

Discusses how to use the IDE to build apps and link to static libraries aned DLLs.

Interoperating with Other Languages (C++/CX)

Discusses how components that are written by using C++/CX can be used with components that are written in JavaScript, any managed language, or the Windows Runtime C++ Template Library.

Threading and Marshaling (C++/CX)

Discusses how to specify the threading and marshaling behavior of components that you create.

Namespaces Reference (C++/CX)

Reference documentation for the default namespace, the Platform namespace, Platform::Collections, and related namespaces.

CRT functions not supported in Universal Windows Platform apps

Lists the CRT functions that are not available for use in Windows 8.x Store apps.


Provides high-level guidance about Windows 8.x Store apps and links to more information.

  1. C++/CX Part 0 of [n]: An Introduction

  2. C++/CX Part 0 of [n]: An Introduction

  3. C++/CX Part 2 of [n]: Types That Wear Hats

  4. C++/CX Part 3 of [n]: Under Construction

  5. C++/CX Part 4 of [n]: Static Member Functions

© 2015 Microsoft