What is C++/CX (C++ component extensions)
- Only enabled in widget/windows/winrt
- Enabled via /ZW command line argument
- .winmd files instead of header files for metadata
- Reference counted types with
ref class Cat { ... };
Using reference counted types with hat (^):
Cat ^minoo = ref new Cat();
Use it just like a pointer (use -> member access) but don't delete it.
Use safe_cast() for casting from one interface to another for the same object
Other features: partial classes, delegates, events, exceptions (wrapper for HRESULT)