204 - 问,C++CX:基本功能介绍

204 - 问,C++CX:基本功能介绍

简介

Visual C++ component extensions (C++/CX) 

as close as possible to modern C++

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 next generation of native C++ programming on Windows.

用途

C++ Windows Store apps that use XAML

C++ Windows Runtime components

Windows Store DirectX games and graphics-intensive apps

编译选项

/ZW compiler option

其他

Pointer : Handle-to-object (^, pronounced "hat"):

Reference to:Tracking reference (%):T % identifier

The extensions for Windows Runtime components serve five basic functions:

1. map C++ patterns (such as constructors) to COM interfaces

2. map between exceptions and HRESULT values

3. map between output parameters and return values

4. provide automatic reference counting of pointers to Windows Runtime objects

5. read and write metadata

参考资料

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh699871.aspx

http://msdn.microsoft.com/en-us/library/windows/apps/xaml/br212455.aspx

http://msdn.microsoft.com/library/xey702bw(VS.110).aspx

你可能感兴趣的:(204 - 问,C++CX:基本功能介绍)