Skip to content

Commit 441a3e9

Browse files
author
mikeblome
committed
replaced C++-CX with C++/CX
1 parent f3758d1 commit 441a3e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+113
-113
lines changed

docs/cppcx/StructuredTOC.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
##### [Object::GetHashCode Method](object-gethashcode-method.md)
111111
##### [Object::GetType Method](object-gettype-method.md)
112112
##### [Object::ReferenceEquals Method](object-referenceequals-method.md)
113-
##### [Object::ToString Method (C++-CX)](object-tostring-method-c-cx.md)
113+
##### [Object::ToString Method (C++/CX)](object-tostring-method-c-cx.md)
114114
#### [Platform::ObjectDisposedException Class](platform-objectdisposedexception-class.md)
115115
#### [Platform::OperationCanceledException Class](platform-operationcanceledexception-class.md)
116116
#### [Platform::OutOfBoundsException Class](platform-outofboundsexception-class.md)

docs/cppcx/TOC.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
1-
# [Visual C++ Language Reference (C++-CX)](visual-c-language-reference-c-cx.md)
2-
## [Quick Reference (C++-CX)](quick-reference-c-cx.md)
3-
## [Type System (C++-CX)](type-system-c-cx.md)
4-
### [Namespaces and Type Visibility (C++-CX )](namespaces-and-type-visibility-c-cx.md)
5-
### [Fundamental types (C++-CX)](fundamental-types-c-cx.md)
6-
### [Strings (C++-CX)](strings-c-cx.md)
7-
### [Array and WriteOnlyArray (C++-CX)](array-and-writeonlyarray-c-cx.md)
8-
### [Ref classes and structs (C++-CX)](ref-classes-and-structs-c-cx.md)
9-
### [Value classes and structs (C++-CX)](value-classes-and-structs-c-cx.md)
10-
### [Partial classes (C++-CX)](partial-classes-c-cx.md)
11-
### [Properties (C++-CX)](properties-c-cx.md)
12-
### [Collections (C++-CX)](collections-c-cx.md)
13-
### [Template ref classes (C++-CX)](template-ref-classes-c-cx.md)
14-
### [Interfaces (C++-CX)](interfaces-c-cx.md)
15-
### [Enums (C++-CX)](enums-c-cx.md)
16-
### [Delegates (C++-CX)](delegates-c-cx.md)
17-
### [Exceptions (C++-CX)](exceptions-c-cx.md)
18-
### [Events (C++-CX)](events-c-cx.md)
19-
### [Casting (C++-CX)](casting-c-cx.md)
20-
### [Boxing (C++-CX)](boxing-c-cx.md)
21-
### [Attributes (C++-CX)](attributes-c-cx.md)
22-
### [Deprecating types and members (C++-CX)](deprecating-types-and-members-c-cx.md)
23-
## [Building apps and libraries (C++-CX)](building-apps-and-libraries-c-cx.md)
24-
### [Compiler and Linker options (C++-CX)](compiler-and-linker-options-c-cx.md)
25-
### [Static libraries (C++-CX)](static-libraries-c-cx.md)
26-
### [DLLs (C++-CX)](dlls-c-cx.md)
27-
## [Interoperating with Other Languages (C++-CX)](interoperating-with-other-languages-c-cx.md)
28-
### [JavaScript integration (C++-CX)](javascript-integration-c-cx.md)
29-
### [CLR integration (C++-CX)](clr-integration-c-cx.md)
30-
### [WRL integration (C++-CX)](wrl-integration-c-cx.md)
31-
## [Obtaining pointers to data buffers (C++-CX)](obtaining-pointers-to-data-buffers-c-cx.md)
32-
## [Threading and Marshaling (C++-CX)](threading-and-marshaling-c-cx.md)
33-
## [Weak references and breaking cycles (C++-CX)](weak-references-and-breaking-cycles-c-cx.md)
34-
## [Namespaces Reference (C++-CX)](namespaces-reference-c-cx.md)
1+
# [Visual C++ Language Reference (C++/CX)](visual-c-language-reference-c-cx.md)
2+
## [Quick Reference (C++/CX)](quick-reference-c-cx.md)
3+
## [Type System (C++/CX)](type-system-c-cx.md)
4+
### [Namespaces and Type Visibility (C++/CX )](namespaces-and-type-visibility-c-cx.md)
5+
### [Fundamental types (C++/CX)](fundamental-types-c-cx.md)
6+
### [Strings (C++/CX)](strings-c-cx.md)
7+
### [Array and WriteOnlyArray (C++/CX)](array-and-writeonlyarray-c-cx.md)
8+
### [Ref classes and structs (C++/CX)](ref-classes-and-structs-c-cx.md)
9+
### [Value classes and structs (C++/CX)](value-classes-and-structs-c-cx.md)
10+
### [Partial classes (C++/CX)](partial-classes-c-cx.md)
11+
### [Properties (C++/CX)](properties-c-cx.md)
12+
### [Collections (C++/CX)](collections-c-cx.md)
13+
### [Template ref classes (C++/CX)](template-ref-classes-c-cx.md)
14+
### [Interfaces (C++/CX)](interfaces-c-cx.md)
15+
### [Enums (C++/CX)](enums-c-cx.md)
16+
### [Delegates (C++/CX)](delegates-c-cx.md)
17+
### [Exceptions (C++/CX)](exceptions-c-cx.md)
18+
### [Events (C++/CX)](events-c-cx.md)
19+
### [Casting (C++/CX)](casting-c-cx.md)
20+
### [Boxing (C++/CX)](boxing-c-cx.md)
21+
### [Attributes (C++/CX)](attributes-c-cx.md)
22+
### [Deprecating types and members (C++/CX)](deprecating-types-and-members-c-cx.md)
23+
## [Building apps and libraries (C++/CX)](building-apps-and-libraries-c-cx.md)
24+
### [Compiler and Linker options (C++/CX)](compiler-and-linker-options-c-cx.md)
25+
### [Static libraries (C++/CX)](static-libraries-c-cx.md)
26+
### [DLLs (C++/CX)](dlls-c-cx.md)
27+
## [Interoperating with Other Languages (C++/CX)](interoperating-with-other-languages-c-cx.md)
28+
### [JavaScript integration (C++/CX)](javascript-integration-c-cx.md)
29+
### [CLR integration (C++/CX)](clr-integration-c-cx.md)
30+
### [WRL integration (C++/CX)](wrl-integration-c-cx.md)
31+
## [Obtaining pointers to data buffers (C++/CX)](obtaining-pointers-to-data-buffers-c-cx.md)
32+
## [Threading and Marshaling (C++/CX)](threading-and-marshaling-c-cx.md)
33+
## [Weak references and breaking cycles (C++/CX)](weak-references-and-breaking-cycles-c-cx.md)
34+
## [Namespaces Reference (C++/CX)](namespaces-reference-c-cx.md)
3535
### [default namespace](default-namespace.md)
3636
#### [default::(type_name)::Equals Method](default-type-name-equals-method.md)
3737
#### [default::(type_name)::GetHashCode Method](default-type-name-gethashcode-method.md)
3838
#### [default::(type_name)::GetType Method](default-type-name-gettype-method.md)
3939
#### [default::(type_name)::ToString Method](default-type-name-tostring-method.md)
40-
### [Platform namespace (C++-CX)](platform-namespace-c-cx.md)
40+
### [Platform namespace (C++/CX)](platform-namespace-c-cx.md)
4141
#### [Platform::AccessDeniedException Class](platform-accessdeniedexception-class.md)
4242
#### [Platform::Agile Class](platform-agile-class.md)
4343
#### [Platform::Array Class](platform-array-class.md)
@@ -108,7 +108,7 @@
108108
#### [Platform::Metadata::RuntimeClassName](platform-metadata-runtimeclassname.md)
109109
### [Platform::Runtime::CompilerServices Namespace](platform-runtime-compilerservices-namespace.md)
110110
### [Platform::Runtime::InteropServices Namespace](platform-runtime-interopservices-namespace.md)
111-
### [Windows::Foundation::Collections Namespace (C++-CX)](windows-foundation-collections-namespace-c-cx.md)
111+
### [Windows::Foundation::Collections Namespace (C++/CX)](windows-foundation-collections-namespace-c-cx.md)
112112
#### [back_inserter Function](back-inserter-function.md)
113113
#### [begin Function](begin-function.md)
114114
#### [end Function](end-function.md)

docs/cppcx/array-and-writeonlyarray-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Array and WriteOnlyArray (C++-CX) | Microsoft Docs"
2+
title: "Array and WriteOnlyArray (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Array and WriteOnlyArray (C++-CX)
17+
# Array and WriteOnlyArray (C++/CX)
1818
You can freely use regular C-style arrays or [std::array](../standard-library/array-class-stl.md) in a C++/CX program (although [std::vector](../standard-library/vector-class.md) is often a better choice), but in any API that is published in metadata, you must convert a C-style array or vector to a [Platform::Array](../cppcx/platform-array-class.md) or [Platform::WriteOnlyArray](../cppcx/platform-writeonlyarray-class.md) type depending on how it is being used. The [Platform::Array](../cppcx/platform-array-class.md) type is neither as efficient nor as powerful as [std::vector](../standard-library/vector-class.md), so as a general guideline you should avoid its use in internal code that performs lots of operations on the array elements.
1919

2020
The following array types can be passed across the ABI:

docs/cppcx/attributes-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Attributes (C++-CX) | Microsoft Docs"
2+
title: "Attributes (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Attributes (C++-CX)
17+
# Attributes (C++/CX)
1818
An attribute is a special kind of ref class that can be prepended in square brackets to [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] types and methods to specify certain behaviors in metadata creation. Several predefined attributes—for example, [Windows::Foundation::Metadata::WebHostHidden](http://msdn.microsoft.com/library/windows/apps/windows.foundation.metadata.webhosthiddenattribute.aspx)—are commonly used in C++/CX code. This example shows how the attribute is applied to a class:
1919

2020
[!code-cpp[cx_attributes#01](../cppcx/codesnippet/CPP/cx_attributes/class1.h#01)]

docs/cppcx/boxing-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Boxing (C++-CX) | Microsoft Docs"
2+
title: "Boxing (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Boxing (C++-CX)
17+
# Boxing (C++/CX)
1818
*Boxing* is wrapping a value type variable such as [Windows::Foundation::DateTime](http://msdn.microsoft.com/library/windows/apps/windows.foundation.datetime.aspx)—or a fundamental scalar type such as `int`—in a ref class when the variable is passed to a method that takes [Platform::Object^](../cppcx/platform-object-class.md) as its input type.
1919

2020
## Passing a value type to an Object^ parameter

docs/cppcx/building-apps-and-libraries-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Building apps and libraries (C++-CX) | Microsoft Docs"
2+
title: "Building apps and libraries (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Building apps and libraries (C++-CX)
17+
# Building apps and libraries (C++/CX)
1818
The topics in this section provide a few details about using the build system to produce a Universal Windows Platform app or [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] component.
1919

2020
## In this section

docs/cppcx/casting-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Casting (C++-CX) | Microsoft Docs"
2+
title: "Casting (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "12/30/2016"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Casting (C++-CX)
17+
# Casting (C++/CX)
1818
Four different cast operators apply to [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] types: [static_cast Operator](../cpp/static-cast-operator.md), [dynamic_cast Operator](../cpp/dynamic-cast-operator.md), **safe_cast Operator**, and [reinterpret_cast Operator](../cpp/reinterpret-cast-operator.md). `safe_cast` and `static_cast` throw an exception when the conversion can't be performed; [static_cast Operator](../cpp/static-cast-operator.md) also performs compile-time type checking. `dynamic_cast` returns `nullptr` if it fails to convert the type. Although `reinterpret_cast` returns a non-null value, it might be invalid. For this reason, we recommend that you not use `reinterpret_cast` unless you know that the cast will succeed. In addition, we recommend that you not use C-style casts in your C++/CX code because they are identical to `reinterpret_cast`.
1919

2020
The compiler and runtime also perform implicit casts—for example, in boxing operations when a value type or built-in type are passed as arguments to a method whose parameter type is `Object^`. In theory, an implicit cast should never cause an exception at run time; if the compiler can't perform an implicit conversion, it raises an error at compile time.

docs/cppcx/clr-integration-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "CLR integration (C++-CX) | Microsoft Docs"
2+
title: "CLR integration (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# CLR integration (C++-CX)
17+
# CLR integration (C++/CX)
1818
Some [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] types receive special handling in C++/CX and the languages that are based on the common language runtime (CLR). This article discusses how several types in one language map to another language. For example, the CLR maps Windows.Foundation.IVector to System.Collections.IList, Windows.Foundation.IMap to System.Collections.IDictionary, and so on. Similarly, C++/CX specially maps types such as Platform::Delegate and Platform::String.
1919

2020
## Mapping the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] to C++/CX

docs/cppcx/collections-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Collections (C++-CX) | Microsoft Docs"
2+
title: "Collections (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Collections (C++-CX)
17+
# Collections (C++/CX)
1818
In a C++/CX program, you can make free use of Standard Template Library (STL) containers, or any other user-defined collection type. However, when you pass collections back and forth across the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] application binary interface (ABI)—for example, to a XAML control or to a JavaScript client—you must use [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] collection types.
1919

2020
The [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)] defines the interfaces for collections and related types, and C++/CX provides the concrete C++ implementations in the collection.h header file. This illustration shows the relationships between the collection types:

docs/cppcx/compiler-and-linker-options-c-cx.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Compiler and Linker options (C++-CX) | Microsoft Docs"
2+
title: "Compiler and Linker options (C++/CX) | Microsoft Docs"
33
ms.custom: ""
44
ms.date: "01/22/2017"
55
ms.prod: "windows-client-threshold"
@@ -14,7 +14,7 @@ author: "ghogen"
1414
ms.author: "ghogen"
1515
manager: "ghogen"
1616
---
17-
# Compiler and Linker options (C++-CX)
17+
# Compiler and Linker options (C++/CX)
1818
An environment variable, C++/CX compiler options, and linker options support the building of apps for the [!INCLUDE[wrt](../cppcx/includes/wrt-md.md)].
1919

2020
## Library path

0 commit comments

Comments
 (0)