Skip to content

Commit a999d0d

Browse files
authored
Merge pull request #5660 from MicrosoftDocs/main
9/10/2024 AM Publish
2 parents 79f9438 + cce4c39 commit a999d0d

File tree

7 files changed

+19
-24
lines changed

7 files changed

+19
-24
lines changed

docs/c-runtime-library/reference/calloc-dbg.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
2-
description: "Learn more about: _calloc_dbg"
32
title: "_calloc_dbg"
3+
description: "Learn more about: _calloc_dbg"
44
ms.date: "11/04/2016"
55
api_name: ["_calloc_dbg"]
66
api_location: ["msvcrt.dll", "msvcr80.dll", "msvcr90.dll", "msvcr100.dll", "msvcr100_clr0400.dll", "msvcr110.dll", "msvcr110_clr0400.dll", "msvcr120.dll", "msvcr120_clr0400.dll", "ucrtbase.dll"]
77
api_type: ["DLLExport"]
88
topic_type: ["apiref"]
99
f1_keywords: ["_calloc_dbg", "calloc_dbg"]
1010
helpviewer_keywords: ["_calloc_dbg function", "calloc_dbg function"]
11-
ms.assetid: 7f62c42b-eb9f-4de5-87d0-df57036c87de
1211
---
1312
# `_calloc_dbg`
1413

@@ -37,7 +36,7 @@ Requested size of each memory block (bytes).
3736
*`blockType`*\
3837
Requested type of memory block: `_CLIENT_BLOCK` or `_NORMAL_BLOCK`.
3938

40-
For information about the allocation block types and how they're used, see[Types of blocks on the debug heap](../crt-debug-heap-details.md#types-of-blocks-on-the-debug-heap).
39+
For information about the allocation block types and how they're used, see [Types of blocks on the debug heap](../crt-debug-heap-details.md#types-of-blocks-on-the-debug-heap).
4140

4241
*`filename`*\
4342
Pointer to name of the source file that requested allocation operation or `NULL`.

docs/cppcx/collections-c-cx.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
---
2-
description: "Learn more about: Collections (C++/CX)"
32
title: "Collections (C++/CX)"
3+
description: "Learn more about: Collections (C++/CX)"
44
ms.date: "11/19/2018"
5-
ms.assetid: 914da30b-aac5-4cd7-9da3-a5ac08cdd72c
65
---
76
# Collections (C++/CX)
87

@@ -16,7 +15,7 @@ The Windows Runtime defines the interfaces for collections and related types, an
1615

1716
- The [Platform::Collections::Map class](../cppcx/platform-collections-map-class.md) resembles the [std::map class](../standard-library/map-class.md).
1817

19-
- [Platform::Collections::VectorView class](../cppcx/platform-collections-vectorview-class.md) and[Platform::Collections::MapView class](../cppcx/platform-collections-mapview-class.md) are read-only versions of `Vector` and `Map`.
18+
- [Platform::Collections::VectorView class](../cppcx/platform-collections-vectorview-class.md) and [Platform::Collections::MapView class](../cppcx/platform-collections-mapview-class.md) are read-only versions of `Vector` and `Map`.
2019

2120
- Iterators are defined in the [Platform::Collections Namespace](../cppcx/platform-collections-namespace.md). These iterators satisfy the requirements for STL iterators and enable the use of [std::find](../standard-library/algorithm-functions.md#find), [std::count_if](../standard-library/algorithm-functions.md#count_if), and other STL algorithms on any [Windows::Foundation::Collections](/uwp/api/windows.foundation.collections) interface type or [Platform::Collections](../cppcx/platform-collections-namespace.md) concrete type. For example, this means that you can iterate a collection in a Windows Runtime component that's created in C# and apply an STL algorithm to it.
2221

@@ -140,6 +139,6 @@ The [Windows::Foundation::Collections::VectorChangedEventHandler](/uwp/api/windo
140139
141140
## See also
142141
143-
[Type System](../cppcx/type-system-c-cx.md)<br/>
144-
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)<br/>
142+
[Type System](../cppcx/type-system-c-cx.md)\
143+
[C++/CX Language Reference](../cppcx/visual-c-language-reference-c-cx.md)\
145144
[Namespaces Reference](../cppcx/namespaces-reference-c-cx.md)

docs/cppcx/platform-object-class.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
description: "Learn more about: Platform::Object Class"
32
title: "Platform::Object Class"
3+
description: "Learn more about: Platform::Object Class"
44
ms.date: "12/30/2016"
55
ms.topic: "reference"
66
f1_keywords: ["VCCORLIB/Platform::Object::Object", "VCCORLIB/Platform::Object::Equals", "VCCORLIB/Platform::Object::GetHashCode", "VCCORLIB/Platform::Object::ReferenceEquals", "VCCORLIB/Platform::ToString", "VCCORLIB/Platform::GetType"]
77
helpviewer_keywords: ["Object class"]
8-
ms.assetid: 709e84a8-0bff-471b-bc14-63e424080b5a
98
---
109
# Platform::Object Class
1110

@@ -104,7 +103,7 @@ A [Platform::Type](../cppcx/platform-type-class.md) object that describes the ru
104103

105104
The static [Type::GetTypeCode](../cppcx/platform-type-class.md#gettypecode) can be used to get a [Platform::TypeCode Enumeration](../cppcx/platform-typecode-enumeration.md) value that represents the current type. This is mostly useful for built-in types. The type code for any ref class besides [Platform::String](../cppcx/platform-string-class.md) is Object (1).
106105

107-
The [Windows::UI::Xaml::Interop::TypeName](/uwp/api/windows.ui.xaml.interop.typename) class is used in the Windows APIs as a language-independent way of passing type information between Windows components and apps. The T[Platform::Type Class](../cppcx/platform-type-class.md) has operators for converting between `Type` and `TypeName`.
106+
The [Windows::UI::Xaml::Interop::TypeName](/uwp/api/windows.ui.xaml.interop.typename) class is used in the Windows APIs as a language-independent way of passing type information between Windows components and apps. The [Platform::Type Class](../cppcx/platform-type-class.md) has operators for converting between `Type` and `TypeName`.
108107

109108
Use the [typeid](../extensions/typeid-cpp-component-extensions.md) operator to return a `Platform::Type` object for a class name, for example when navigating between XAML pages:
110109

@@ -173,6 +172,6 @@ public:
173172

174173
## See also
175174

176-
[Platform Namespace](platform-namespace-c-cx.md)<br/>
177-
[Platform::Type Class](platform-type-class.md)<br/>
175+
[Platform Namespace](platform-namespace-c-cx.md)\
176+
[Platform::Type Class](platform-type-class.md)\
178177
[Type System](type-system-c-cx.md)

docs/get-started/tutorial-console-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Let's handle division by zero more gracefully so that it's easier for the user t
360360
cin >> x >> oper >> y;
361361
if (oper == '/' && y == 0)
362362
{
363-
cout << "Attempted to divide by zero!" << endl;
363+
cout << "Math error: Attempted to divide by zero!" << endl;
364364
continue;
365365
}
366366
else

docs/mfc/mfc-activex-controls-using-fonts.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: MFC ActiveX Controls: Using Fonts"
32
title: "MFC ActiveX Controls: Using Fonts"
3+
description: "Learn more about: MFC ActiveX Controls: Using Fonts"
44
ms.date: "11/19/2018"
55
f1_keywords: ["OnFontChanged", "HeadingFont", "InternalFont"]
66
helpviewer_keywords: ["notifications [MFC], MFC ActiveX controls fonts", "OnDraw method, MFC ActiveX controls", "InternalFont method [MFC]", "SetFont method [MFC]", "OnFontChanged method [MFC]", "IPropertyNotifySink class [MFC]", "MFC ActiveX controls [MFC], fonts", "Stock Font property [MFC]", "HeadingFont property [MFC]", "GetFont method [MFC]", "SelectStockFont method [MFC]", "fonts [MFC], ActiveX controls"]
7-
ms.assetid: 7c51d602-3f5a-481d-84d1-a5d8a3a71761
87
---
98
# MFC ActiveX Controls: Using Fonts
109

@@ -112,7 +111,7 @@ To implement a custom Font property, you use the Add Property Wizard to add the
112111

113112
1. Click **Finish**.
114113

115-
The Add Property Wizard creates the code to add the `HeadingFont` custom property to the `CSampleCtrl` class and the SAMPLE.IDL file. Because `HeadingFont` is a Get/Set property type, the Add Property Wizard modifies the `CSampleCtrl` class's dispatch map to include a DISP_PROPERTY_EX_ID[DISP_PROPERTY_EX](reference/dispatch-maps.md#disp_property_ex) macro entry:
114+
The Add Property Wizard creates the code to add the `HeadingFont` custom property to the `CSampleCtrl` class and the SAMPLE.IDL file. Because `HeadingFont` is a Get/Set property type, the Add Property Wizard modifies the `CSampleCtrl` class's dispatch map to include a DISP_PROPERTY_EX_ID [DISP_PROPERTY_EX](reference/dispatch-maps.md#disp_property_ex) macro entry:
116115

117116
[!code-cpp[NVC_MFC_AxFont#5](codesnippet/cpp/mfc-activex-controls-using-fonts_5.cpp)]
118117

@@ -215,6 +214,6 @@ After these changes have been made to your project, rebuild the project and use
215214

216215
## See also
217216

218-
[MFC ActiveX Controls](mfc-activex-controls.md)<br/>
219-
[MFC ActiveX Controls: Using Pictures in an ActiveX Control](mfc-activex-controls-using-pictures-in-an-activex-control.md)<br/>
217+
[MFC ActiveX Controls](mfc-activex-controls.md)\
218+
[MFC ActiveX Controls: Using Pictures in an ActiveX Control](mfc-activex-controls-using-pictures-in-an-activex-control.md)\
220219
[MFC ActiveX Controls: Using Stock Property Pages](mfc-activex-controls-using-stock-property-pages.md)

docs/mfc/tn014-custom-controls.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
description: "Learn more about: TN014: Custom Controls"
32
title: "TN014: Custom Controls"
3+
description: "Learn more about: TN014: Custom Controls"
44
ms.date: "06/28/2018"
55
f1_keywords: ["vc.controls"]
66
helpviewer_keywords: ["TN014", "custom controls [MFC]"]
7-
ms.assetid: 1917a498-f643-457c-b570-9a0af7dbf7bb
87
---
98
# TN014: Custom Controls
109

@@ -118,13 +117,13 @@ There are three common ways these are related:
118117

119118
- `CWnd` is attached to an existing `HWND` and you can modify the behavior in a derived class. This is called dynamic subclassing because we are changing the behavior, and therefore the class, of a Windows object at run time.
120119

121-
You can achieve dynamic subclassing by using the methods [CWnd::SubclassWindow](../mfc/reference/cwnd-class.md#subclasswindow) and[CWnd::SubclassDlgItem](../mfc/reference/cwnd-class.md#subclassdlgitem).
120+
You can achieve dynamic subclassing by using the methods [CWnd::SubclassWindow](../mfc/reference/cwnd-class.md#subclasswindow) and [CWnd::SubclassDlgItem](../mfc/reference/cwnd-class.md#subclassdlgitem).
122121

123122
Both routines attach a `CWnd` object to an existing `HWND`. `SubclassWindow` takes the `HWND` directly. `SubclassDlgItem` is a helper function that takes a control ID and the parent window. `SubclassDlgItem` is designed for attaching C++ objects to dialog controls created from a dialog template.
124123

125124
See the [CTRLTEST](../overview/visual-cpp-samples.md) example for several examples of when to use `SubclassWindow` and `SubclassDlgItem`.
126125

127126
## See also
128127

129-
[Technical Notes by Number](../mfc/technical-notes-by-number.md)<br/>
128+
[Technical Notes by Number](../mfc/technical-notes-by-number.md)\
130129
[Technical Notes by Category](../mfc/technical-notes-by-category.md)

docs/sanitizers/asan-shadow-bytes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ helpviewer_keywords: ["Shadow bytes", "AddressSanitizer shadow bytes","Address S
77

88
# AddressSanitizer shadow bytes
99

10-
We briefly summarize the concept of shadow bytes and how they can be used by the runtime implementation of [`/fsanitize=address`](../build/reference/fsanitize.md). For further details, we refer you to the [seminal paper](https://www.usenix.org/system/files/conference/atc12/atc12-final39.pdf) and the [AddressSanitizer algorithm](https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm).
10+
We briefly summarize the concept of shadow bytes and how they can be used by the runtime implementation of [`/fsanitize=address`](../build/reference/fsanitize.md). For further details, we refer you to the initial research [AddressSanitizer - Serebryany, et al](https://www.usenix.org/system/files/conference/atc12/atc12-final39.pdf) and the [current AddressSanitizer algorithm documentation](https://github.com/google/sanitizers/wiki/AddressSanitizerAlgorithm).
1111

1212
## Core concept
1313

0 commit comments

Comments
 (0)