Skip to content

Commit a950c52

Browse files
authored
Add "Remarks" and "Example" headings for error references in range [C3351, C3380]
1 parent 81c5efe commit a950c52

22 files changed

+78
-0
lines changed

docs/error-messages/compiler-errors-2/compiler-error-c3351.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: c021bbbe-1067-4f51-af4f-940d2b792eb5
1010

1111
> 'object' : delegate constructor: second argument must be address of a static member function or global function
1212
13+
## Remarks
14+
1315
The compiler expected the address of a function declared **`static`**.
1416

17+
## Example
18+
1519
The following sample generates C3351:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3352.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,14 @@ ms.assetid: f233bed7-474e-425f-aad2-7801578169d4
1010

1111
> 'function' : the specified function does not match the delegate type 'type'
1212
13+
## Remarks
14+
1315
The parameter lists for `function` and the delegate do not match.
1416

1517
For more information, see [delegate (C++ Component Extensions)](../../extensions/delegate-cpp-component-extensions.md).
1618

19+
## Example
20+
1721
The following sample generates C3352:
1822

1923
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3353.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 5699c04b-d504-46ce-bf71-c200318fed71
1010

1111
> 'delegate' : a delegate can only be created from a global function or a member function of a managed or WinRT type
1212
13+
## Remarks
14+
1315
Delegates, declared with the [delegate](../../extensions/delegate-cpp-component-extensions.md) keyword, can only be declared at global scope.
1416

17+
## Example
18+
1519
The following sample generates C3353:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3354.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 185de401-231e-4999-a149-172ee4c69d84
1010

1111
> 'function' : the function used to create a delegate cannot have return type 'type'
1212
13+
## Remarks
14+
1315
The following types are invalid as return types for a **`delegate`**:
1416

1517
- Pointer to function
@@ -22,6 +24,8 @@ The following types are invalid as return types for a **`delegate`**:
2224

2325
- Reference to member function
2426

27+
## Example
28+
2529
The following sample generates C3354:
2630

2731
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3356.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@ ms.assetid: 6c1094f6-ac85-480a-b78b-e92fcf38641a
1010

1111
> 'attribute': cannot call a multicast attribute with a fully qualified name
1212
13+
## Remarks
14+
1315
An attribute that is processed by more than one process, for example, the compiler and ATL provider, was specified incorrectly.

docs/error-messages/compiler-errors-2/compiler-error-c3358.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 180b93df-e78f-441a-91fb-1594c681f7f0
1010

1111
> 'symbol': symbol not found
1212
13+
## Remarks
14+
1315
The required symbol was not found.
1416

17+
## Example
18+
1519
The following sample generates C3358:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3360.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 6acf983a-dbb6-422b-b045-a34bb4ba6761
1010

1111
> 'string': cannot create name
1212
13+
## Remarks
14+
1315
The value that was passed to the [uuid](../../windows/attributes/uuid-cpp-attributes.md) attribute was not valid.
1416

17+
## Example
18+
1519
The following sample generates C3360:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3363.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 41aa922f-608e-4f7a-ba66-451fc1161935
1010

1111
> 'type' : 'typeid' can only be applied to a type
1212
13+
## Remarks
14+
1315
The [typeid](../../extensions/typeid-cpp-component-extensions.md) operator was used incorrectly.
1416

1517
## Example

docs/error-messages/compiler-errors-2/compiler-error-c3364.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ ms.assetid: 98654741-60fe-4472-a6af-e580f8c0a6e1
1010

1111
> 'delegate': delegate constructor: argument must be pointer to member function of managed class or global function
1212
13+
## Remarks
14+
1315
The second parameter of the delegate's constructor takes either the address of a member function or the address of a static member function of any class. Both are treated as simple addresses.
1416

17+
## Example
18+
1519
The following sample generates C3364:
1620

1721
```cpp

docs/error-messages/compiler-errors-2/compiler-error-c3365.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ms.assetid: 875ec3a4-522c-4e3d-9b67-48808b857f6d
1010

1111
> operator 'operator' : differing operands of type 'type1' and 'type2'
1212
13+
## Remarks
14+
1315
An attempt was made to compose delegates with different types. See [How to: Define and Use Delegates (C++/CLI)](../../dotnet/how-to-define-and-use-delegates-cpp-cli.md) for more information about delegates.
1416

1517
## Example

0 commit comments

Comments
 (0)