
Official website (https://docs.microsoft.com/en-us/cpp/cppcx/visual-c-language-reference-c-cx)
C++/CX
Sign in to saveAlso known as C++ component extensions
C++/CX (C++ component extensions) is a language projection for Microsoft's Windows Runtime platform. It takes the form of a language extension for C++ compilers, and it enables C++ programmers to write programs that call Windows Runtime (WinRT) APIs. C++/CX is superseded by the C++/WinRT language projection, which is not an extension to the C++ language; rather, it's an entirely standard modern ISO C++17 header-file-based library.
Official website

C++/CX Language Reference | Microsoft Learn
Learn more about: C++/CX Language Reference
docs.microsoft.com →Link to the official site · 6,331 chars · not written by Vinony
Wikidata facts
Show 1 more fact
- publication date
- 2011-00-00
via Wikidata · CC0
~5 min read
Article
13 sectionsContents
- Extension syntax
- Objects
- Reference counting
- Classes
- Runtime classes
- Partial classes
- Generics
- Metadata
- Runtime library
- Preprocessor-based detection
- See also
- References
- External links
C++/CX (C++ component extensions) is a language projection for Microsoft's Windows Runtime platform. It takes the form of a language extension for C++ compilers, and it enables C++ programmers to write programs that call Windows Runtime (WinRT) APIs. C++/CX is superseded by the C++/WinRT language projection, which is not an extension to the C++ language; rather, it's an entirely standard modern ISO C++17 header-file-based library.
The language extensions borrow syntax from C++/CLI but target the Windows Runtime Universal Windows Platform native code instead of the Common Language Runtime and managed code. It brings a set of syntax and library abstractions that project COM's WRL subset-based WinRT programming model in a way that is intuitive to C++/CLI managed extensions' coders.