Skip to content

Commit e791882

Browse files
authored
Merge pull request #2086 from MicrosoftDocs/master
6/14/2019 AM Publish
2 parents fde637f + 0b1e47b commit e791882

File tree

5 files changed

+96
-228
lines changed

5 files changed

+96
-228
lines changed

docs/atl/codesnippet/CPP/isupporterrorinfoimpl-class_2.cpp

Lines changed: 0 additions & 45 deletions
This file was deleted.
Lines changed: 5 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "ISupportErrorInfoImpl Class"
3-
ms.date: "11/04/2016"
3+
ms.date: "06/13/2019"
44
f1_keywords: ["ISupportErrorInfoImpl", "ATLCOM/ATL::ISupportErrorInfoImpl", "ATLCOM/ATL::ISupportErrorInfoImpl::InterfaceSupportsErrorInfo"]
55
helpviewer_keywords: ["ISupportErrorInfo ATL implementation", "ISupportErrorInfoImpl class", "error information, ATL"]
66
ms.assetid: e33a4b11-a123-41cf-bcea-7b19743902af
@@ -10,17 +10,17 @@ ms.assetid: e33a4b11-a123-41cf-bcea-7b19743902af
1010
This class provides a default implementation of the [ISupportErrorInfo Interface](/windows/desktop/api/oaidl/nn-oaidl-isupporterrorinfo) and can be used when only a single interface generates errors on an object.
1111

1212
> [!IMPORTANT]
13-
> This class and its members cannot be used in applications that execute in the Windows Runtime.
13+
> This class and its members cannot be used in applications that execute in the Windows Runtime.
1414
1515
## Syntax
1616

17-
```
17+
```cpp
1818
template<const IID* piid>
1919
class ATL_NO_VTABLE ISupportErrorInfoImpl
2020
: public ISupportErrorInfo
2121
```
2222
23-
#### Parameters
23+
### Parameters
2424
2525
*piid*<br/>
2626
A pointer to the IID of an interface that supports [IErrorInfo](/windows/desktop/api/oaidl/nn-oaidl-ierrorinfo).
@@ -55,102 +55,14 @@ Class `ISupportErrorInfoImpl` provides a default implementation of `ISupportErro
5555
5656
Indicates whether the interface identified by `riid` supports the [IErrorInfo](/windows/desktop/api/oaidl/nn-oaidl-ierrorinfo) interface.
5757
58-
```
58+
```cpp
5959
STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
6060
```
6161

6262
### Remarks
6363

6464
See [ISupportErrorInfo::InterfaceSupportsErrorInfo](/windows/desktop/api/oaidl/nf-oaidl-isupporterrorinfo-interfacesupportserrorinfo) in the Windows SDK.
6565

66-
## <a name="getsize"></a> IThreadPoolConfig::GetSize
67-
68-
Call this method to get the number of threads in the pool.
69-
70-
```
71-
STDMETHOD(GetSize)(int* pnNumThreads);
72-
```
73-
74-
### Parameters
75-
76-
*pnNumThreads*<br/>
77-
[out] Address of the variable that, on success, receives the number of threads in the pool.
78-
79-
### Return Value
80-
81-
Returns S_OK on success, or an error HRESULT on failure.
82-
83-
### Example
84-
85-
[!code-cpp[NVC_ATL_Utilities#134](../../atl/codesnippet/cpp/isupporterrorinfoimpl-class_2.cpp)]
86-
87-
## <a name="gettimeout"></a> IThreadPoolConfig::GetTimeout
88-
89-
Call this method to get the maximum time in milliseconds that the thread pool will wait for a thread to shut down.
90-
91-
```
92-
STDMETHOD(GetTimeout)(DWORD* pdwMaxWait);
93-
```
94-
95-
### Parameters
96-
97-
*pdwMaxWait*<br/>
98-
[out] Address of the variable that, on success, receives the maximum time in milliseconds that the thread pool will wait for a thread to shut down.
99-
100-
### Return Value
101-
102-
Returns S_OK on success, or an error HRESULT on failure.
103-
104-
### Example
105-
106-
See [IThreadPoolConfig::GetSize](#getsize).
107-
108-
## <a name="setsize"></a> IThreadPoolConfig::SetSize
109-
110-
Call this method to set the number of threads in the pool.
111-
112-
```
113-
STDMETHOD(SetSize)int nNumThreads);
114-
```
115-
116-
### Parameters
117-
118-
*nNumThreads*<br/>
119-
The requested number of threads in the pool.
120-
121-
If *nNumThreads* is negative, its absolute value will be multiplied by the number of processors in the machine to get the total number of threads.
122-
123-
If *nNumThreads* is zero, ATLS_DEFAULT_THREADSPERPROC will be multiplied by the number of processors in the machine to get the total number of threads.
124-
125-
### Return Value
126-
127-
Returns S_OK on success, or an error HRESULT on failure.
128-
129-
### Example
130-
131-
See [IThreadPoolConfig::GetSize](#getsize).
132-
133-
## <a name="settimeout"></a> IThreadPoolConfig::SetTimeout
134-
135-
Call this method to set the maximum time in milliseconds that the thread pool will wait for a thread to shut down.
136-
137-
```
138-
STDMETHOD(SetTimeout)(DWORD dwMaxWait);
139-
```
140-
141-
### Parameters
142-
143-
*dwMaxWait*<br/>
144-
The requested maximum time in milliseconds that the thread pool will wait for a thread to shut down.
145-
146-
### Return Value
147-
148-
Returns S_OK on success, or an error HRESULT on failure.
149-
150-
### Example
151-
152-
See [IThreadPoolConfig::GetSize](#getsize).
153-
15466
## See also
15567

15668
[Class Overview](../../atl/atl-class-overview.md)

docs/build/reference/verbose-print-progress-messages.md

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
11
---
2-
title: "/VERBOSE (Print Progress Messages)"
3-
ms.date: "11/04/2016"
2+
title: "/VERBOSE (Print progress messages)"
3+
ms.date: "06/13/2019"
44
f1_keywords: ["/verbose", "VC.Project.VCLinkerTool.ShowProgress"]
55
helpviewer_keywords: ["-VERBOSE linker option", "linking [C++], session progress information", "Print Progress Messages linker option", "linker [C++], output dependency information", "/VERBOSE linker option", "dependencies [C++], dependency information in linker output", "VERBOSE linker option"]
66
ms.assetid: 9c347d98-4c37-4724-a39e-0983934693ab
77
---
8-
# /VERBOSE (Print Progress Messages)
8+
# /VERBOSE (Print progress messages)
99

10-
```
11-
/VERBOSE[:{ICF|INCR|LIB|REF|SAFESEH|UNUSEDLIBS}]
12-
```
10+
Outputs progress messages during the link process.
11+
12+
## Syntax
13+
14+
> **/VERBOSE**\[**:**{**CLR**|**ICF**|**INCR**|**LIB**|**REF**|**SAFESEH**|**UNUSEDDELAYLOAD**|**UNUSEDLIBS**}\]
1315
1416
## Remarks
1517

16-
The linker sends information about the progress of the linking session to the **Output** window. On the command line, the information is sent to standard output and can be redirected to a file.
18+
The linker sends information about the progress of the linking session to the **Output** window. On the command line, the information is sent to standard output, and can be redirected to a file.
1719

18-
|Option|Description|
19-
|------------|-----------------|
20-
|/VERBOSE|Displays details about the linking process.|
21-
|/VERBOSE:ICF|Display information about linker activity that results from the use of [/OPT:ICF](opt-optimizations.md).|
22-
|/VERBOSE:INCR|Displays information about the incremental link process.|
23-
|/VERBOSE:LIB|Displays progress messages that indicate just the libraries searched.<br /><br /> The displayed information includes the library search process and lists each library and object name (with full path), the symbol being resolved from the library, and a list of objects that reference the symbol.|
24-
|/VERBOSE:REF|Displays information about linker activity that results from the use of [/OPT:REF](opt-optimizations.md).|
25-
|/VERBOSE:SAFESEH|Displays information about modules that are not compatible with safe exception handling when [/SAFESEH](safeseh-image-has-safe-exception-handlers.md) is not specified.|
26-
|/VERBOSE:UNUSEDLIBS|Displays information about any library files that are unused when the image is created.|
20+
| Option | Description |
21+
| ------------ | ----------------- |
22+
| /VERBOSE | Displays details about the linking process. |
23+
| /VERBOSE:CLR | Displays information about linker activity specific to objects and metadata compiled by using [/clr](clr-common-language-runtime-compilation.md). |
24+
| /VERBOSE:ICF | Displays information about linker activity that results from the use of [/OPT:ICF](opt-optimizations.md). |
25+
| /VERBOSE:INCR | Displays information about the incremental link process. |
26+
| /VERBOSE:LIB | Displays progress messages that indicate just the libraries searched.<br/> The displayed information includes the library search process. It lists each library and object name (with full path), the symbol being resolved from the library, and a list of objects that reference the symbol. |
27+
| /VERBOSE:REF | Displays information about linker activity that results from the use of [/OPT:REF](opt-optimizations.md). |
28+
| /VERBOSE:SAFESEH | Displays information about modules that are incompatible with safe structured exception handling when [/SAFESEH](safeseh-image-has-safe-exception-handlers.md) isn't specified. |
29+
| /VERBOSE:UNUSEDDELAYLOAD | Displays information about any delay loaded DLLs that have no symbols used when the image is created. |
30+
| /VERBOSE:UNUSEDLIBS | Displays information about any library files that are unused when the image is created. |
2731

2832
### To set this linker option in the Visual Studio development environment
2933

3034
1. Open the project's **Property Pages** dialog box. For details, see [Set C++ compiler and build properties in Visual Studio](../working-with-project-properties.md).
3135

32-
1. Expand the **Linker** folder.
33-
34-
1. Select the **Command Line** property page.
36+
1. Select the **Configuration Properties** > **Linker** > **Command Line** property page.
3537

3638
1. Add the option to the **Additional Options** box.
3739

docs/cpp/references-to-pointers.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: "References to Pointers"
3-
ms.date: "08/20/2018"
2+
title: "References to pointers"
3+
ms.date: "06/13/2019"
44
helpviewer_keywords: ["references, to pointers"]
55
ms.assetid: 4ce48b08-1511-4d2f-a31f-95f99eac0c70
66
---
7-
# References to Pointers
7+
# References to pointers
88

9-
References to pointers can be declared in much the same way as references to objects. Declaring a reference to a pointer yields a modifiable value that is used like a normal pointer.
9+
References to pointers can be declared in much the same way as references to objects. A reference to a pointer is a modifiable value that's used like a normal pointer.
1010

1111
## Example
1212

13-
The following code samples illustrate the difference between using a pointer to a pointer and a reference to a pointer.
13+
This code sample shows the difference between using a pointer to a pointer and a reference to a pointer.
1414

15-
Functions `Add1` and `Add2` are functionally equivalent (although they are not called the same way). The difference is that `Add1` uses double indirection whereas `Add2` uses the convenience of a reference to a pointer.
15+
Functions `Add1` and `Add2` are functionally equivalent, although they're not called the same way. The difference is that `Add1` uses double indirection, but `Add2` uses the convenience of a reference to a pointer.
1616

1717
```cpp
1818
// references_to_pointers.cpp
@@ -45,11 +45,11 @@ void PrintTree( BTree* btRoot );
4545
int main( int argc, char *argv[] ) {
4646
// Usage message
4747
if( argc < 2 ) {
48-
cerr << "Usage: Refptr [1 | 2]" << "\n";
48+
cerr << "Usage: " << argv[0] << " [1 | 2]" << "\n";
4949
cerr << "\nwhere:\n";
5050
cerr << "1 uses double indirection\n";
5151
cerr << "2 uses a reference to a pointer.\n";
52-
cerr << "\nInput is from stdin.\n";
52+
cerr << "\nInput is from stdin. Use ^Z to terminate input.\n";
5353
return 1;
5454
}
5555

@@ -92,15 +92,15 @@ int main( int argc, char *argv[] ) {
9292
// PrintTree: Display the binary tree in order.
9393
void PrintTree( BTree* MybtRoot ) {
9494
// Traverse the left branch of the tree recursively.
95-
if ( btRoot->Left )
96-
PrintTree( btRoot->Left );
95+
if ( MybtRoot->Left )
96+
PrintTree( MybtRoot->Left );
9797

9898
// Print the current node.
99-
cout << btRoot->szText << "\n";
99+
cout << MybtRoot->szText << "\n";
100100

101101
// Traverse the right branch of the tree recursively.
102-
if ( btRoot->Right )
103-
PrintTree( btRoot->Right );
102+
if ( MybtRoot->Right )
103+
PrintTree( MybtRoot->Right );
104104
}
105105

106106
// Add1: Add a node to the binary tree.
@@ -143,15 +143,15 @@ int Add2( BTree*& Root, char *szToAdd ) {
143143
```
144144
145145
```Output
146-
Usage: Refptr [1 | 2]
146+
Usage: references_to_pointers.exe [1 | 2]
147147
148148
where:
149149
1 uses double indirection
150150
2 uses a reference to a pointer.
151151
152-
Input is from stdin.
152+
Input is from stdin. Use ^Z to terminate input.
153153
```
154154

155155
## See also
156156

157-
[References](../cpp/references-cpp.md)
157+
[References](../cpp/references-cpp.md)

0 commit comments

Comments
 (0)