Skip to content

Commit 49952d3

Browse files
author
Colin Robertson
authored
Merge pull request MicrosoftDocs#2540 from MicrosoftDocs/master637384670643677545
Repo sync for protected CLA branch
2 parents 524d4dc + ced5ff1 commit 49952d3

File tree

6 files changed

+14
-13
lines changed

6 files changed

+14
-13
lines changed

docs/atl/implementing-a-window-with-cwindowimpl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To implement a window, derive a class from `CWindowImpl`. In your derived class,
2121
> [!NOTE]
2222
> `CWindowImpl` passes NULL to the `DECLARE_WND_CLASS` macro, which means ATL will generate a Windows class name. To specify your own name, pass a string to DECLARE_WND_CLASS in your `CWindowImpl`-derived class.
2323
24-
## Example
24+
## Example: Implement a window
2525

2626
Following is an example of a class that implements a window based on a new Windows class:
2727

@@ -38,7 +38,7 @@ The [DECLARE_WND_SUPERCLASS](reference/window-class-macros.md#declare_wnd_superc
3838

3939
When you use DECLARE_WND_SUPERCLASS, a new Windows class will be registered. This new class will be the same as the existing class you specify, but will replace the window procedure with `CWindowImpl::WindowProc` (or with your function that overrides this method).
4040

41-
## Example
41+
## Example: Superclass the Edit class
4242

4343
Following is an example of a class that superclasses the standard Edit class:
4444

docs/atl/reference/debugging-and-error-reporting-macros.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Expression (including pointers) that evaluates to nonzero or 0.
8181

8282
In debug builds, ATLASSERT evaluates *booleanExpression* and generates a debug report when the result is false.
8383

84-
## Requirements
84+
### Requirements
8585

8686
**Header:** atldef.h
8787

@@ -118,7 +118,7 @@ The difference between ATLENSURE and ATLASSERT is that ATLENSURE throws an excep
118118

119119
[!code-cpp[NVC_ATL_Utilities#108](../../atl/codesnippet/cpp/debugging-and-error-reporting-macros_1.cpp)]
120120

121-
## Requirements
121+
### Requirements
122122

123123
**Header:** afx.h
124124

@@ -143,7 +143,7 @@ In release builds, simply returns E_NOTIMPL.
143143

144144
[!code-cpp[NVC_ATL_Utilities#127](../../atl/codesnippet/cpp/debugging-and-error-reporting-macros_2.cpp)]
145145

146-
## Requirements
146+
### Requirements
147147

148148
**Header:** atltrace.h
149149

docs/code-quality/c33011.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ void foo(Index idx, PFN(&functions)[5])
4747
}
4848
```
4949
50-
These warnings are corrected by declaring the enum as enum class:
51-
50+
These warnings are corrected by checking the index value for upper bound as well:
5251
```cpp
5352
typedef void (*PFN)();
5453

docs/extensions/generic-interfaces-visual-cpp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Declarations of the interface members.
5151
*declarators*<br/>
5252
(Optional) Declarations of variables based on this type.
5353
54-
## Example
54+
## Example: How to declare and instantiate a generic interface
5555
5656
The following example demonstrates how to declare and instantiate a generic interface. In the example, the generic interface `IList<ItemType>` is declared. It is then implemented by two generic classes, `List1<ItemType>` and `List2<ItemType>`, with different implementations.
5757
@@ -228,7 +228,7 @@ Array List
228228
List2
229229
```
230230

231-
## Example
231+
## Example: Declare a generic interface
232232

233233
This example declares a generic interface, `IMyGenIface`, and two non-generic interfaces, `IMySpecializedInt` and `ImySpecializedString`, that specialize `IMyGenIface`. The two specialized interfaces are then implemented by two classes, `MyIntClass` and `MyStringClass`. The example shows how to specialize generic interfaces, instantiate generic and non-generic interfaces, and call the explicitly implemented members on the interfaces.
234234

docs/intrinsics/interlockedadd-intrinsic-functions.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The versions of these functions with the `_acq` or `_rel` suffixes perform an in
8181

8282
These routines are only available as intrinsics.
8383

84-
## Examples
84+
## Example: `_InterlockedAdd`
8585

8686
```cpp
8787
// interlockedadd.cpp
@@ -102,12 +102,14 @@ int main()
102102
}
103103
```
104104

105-
## Output
105+
## Output: `_InterlockedAdd`
106106

107107
```Output
108108
0xffffff00 0xff0000 0xffffff00
109109
```
110110

111+
## Example: `_InterlockedAdd64`
112+
111113
```cpp
112114
// interlockedadd64.cpp
113115
// compile with: /Oi /EHsc
@@ -130,7 +132,7 @@ int main()
130132
}
131133
```
132134

133-
## Output
135+
## Output: `_InterlockedAdd64`
134136

135137
```Output
136138
ff0000000000 + ff0000ffffffff = ffff00ffffffff

docs/parallel/amp/reference/invalid-compute-domain-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class invalid_compute_domain : public runtime_exception;
4141

4242
Initializes a new instance of the class.
4343

44-
## Syntax
44+
### Syntax
4545

4646
```cpp
4747
explicit invalid_compute_domain(

0 commit comments

Comments
 (0)