Skip to content

Commit 9d65e74

Browse files
Taojunshen3836425+corob-msft@users.noreply.i.8713187.xyzopbld16TylerMSFTTylerMSFT
authored
3/1/2021 AM Publish (#4140)
* Change __STDC__ documentation for 17.2 * Twhitney updateui (#4082) * update ui steps * simplify * fix formatting * try a note * formatting * bridge the note * edits * edits * acrolinx * Update docs/build/walkthrough-header-units.md Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Shannon Leavitt <[email protected]> * Fix link to CreateProcess function * Update exception-handling-x64.md * US1907300 - add md code escapes to code elements - PR9 * Address cpp-docs 3691, 3688, 3684, 3664 (#4085) * [17.2p1] Add /scanDependencies option to docs (#4059) * Add /scanDependencies option to docs * Acrolinx pass * Updates per review by Cameron * Consistency of command option formatting * Add IDE instructions * Tweaks per comments. * US1907300 - add md code escapes to code elements - PR7 (#4076) * US1907300 - add md code escapes to code elements - PR7 * US1907300 - add md code escapes to code elements - PR7 * updates after review * updates after review * updates after review * updates after review * updates after review * US1907300 - add md code escapes to code elements - PR8 (#4080) * US1907300 - add md code escapes to code elements - PR8 * updates after review * updates after review * updates after review * fix blocking issue * Address DD 1462641 (#4086) * Content for 17.1 release * US1907300 - add md code escapes to code elements - PR9 * fix formatting issue * US1907300 - add md code escapes to code elements - PR10 * updates after review * updates after review * updates after review * updates after review * updates after review * Address cpp-docs 3694, 3696 * Update what-s-new-for-visual-cpp-in-visual-studio.md fix typo * add links (#4094) Co-authored-by: TylerMSFT <[email protected]> * Address cpp-docs 3694, 3696 (#4091) * Updates for cpp-docs 3700 3703 * Add op= to example * Add 3448,3482,3483,3540,3683 updates * Use existing media for CMake Targets View * US1907300 - add md code escapes to code elements - PR11 (#4095) * US1907300 - add md code escapes to code elements - PR11 * updates after review * fix table syntax * trying to fix table rendering error * trying to fix table rendering error * trying to fix table rendering error * update after review * Additional clean-up for DD 1462641 * Set ms.topic: faq where YamlMime:FAQ (#4099) * Release notes and conformance for 17.1 * typo fix * Use ConcRT instead of ConCRT ConcRT is a more correct abbreviation for Concurrency Runtime Library. ConcRT also appears in the comment in the beginning of concrt.h. * cpp-docs 3590 in progress * US1907300 - add md code escapes to code elements - PR12 (#4103) * US1907300 - add md code escapes to code elements - PR12 * changes afteer review * changes afteer review * changes afteer review * changes afteer review * Bulk fix: \&#124; entity removal 1/n * Bulk fix: pipe entity removal 2 of n * clarify operators * Bulk fix: Pipe entity 3 of n * Fix grammar * Bulk fix pipe entities 4 of n * Bulk fix * Undo change * Fix pipe entities 5 of n * Fix more pipe entity issues * US1907300 - add md code escapes to code elements - PR13 (#4110) * US1907300 - add md code escapes to code elements - PR13 * changes afteer review * changes after review * Add missing Properties and F1 targets * Tweak dates, Acrolinx * Fix links * US1907300 - add md code escapes to code elements - PR14 * changes after review * US1907300 - add md code escapes to code elements - PR15 * US1907300 - add md code escapes to code elements - PR15 * Add C7553, C5240, diagnostics fixes * Add C5054, C5055, C5056 warnings * fix link * updates after review * Fix a collection of cpp-docs issues * Add C7553, C5240 to TOC * Add C5054, C5055, C5056 to TOC * Tweaks to cpp-docs-220222 * changes after review * Document lowercase, uppercase. Add specific version information * US1907300 - add md code escapes to code elements - PR16 (#4127) * US1907300 - add md code escapes to code elements - PR16 * US1907300 - add md code escapes to code elements - PR16 * changes after review * Add version inforation into table (#4132) * Fix typo that listed for_each instead of find_if Fixed an example description where the description did not match the example * Add that "g" has been deprecated * US1907300 - add md code escapes to code elements - PR17 (#4130) * US1907300 - add md code escapes to code elements - PR17 * changes after review * changes after review * changes after review * changes after review * changes after review * Change P1689R3 to P1689R4 per Gaby * US1907300 - add md code escapes to code elements - PR18 (#4135) * US1907300 - add md code escapes to code elements - PR18 * changes after review * Update to Docs style. * Fix typo. * Fix missing ending underscore in `_Analysis_assume_` * Fix link. Co-authored-by: [email protected] <[email protected]> Co-authored-by: opbld16 <[email protected]> Co-authored-by: Tyler Whitney <[email protected]> Co-authored-by: TylerMSFT <[email protected]> Co-authored-by: Shannon Leavitt <[email protected]> Co-authored-by: ishchukin <[email protected]> Co-authored-by: p4yl0ad <[email protected]> Co-authored-by: opbld17 <[email protected]> Co-authored-by: Craig Casey <[email protected]> Co-authored-by: PRMerger9 <[email protected]> Co-authored-by: opbld15 <[email protected]> Co-authored-by: Dennis Rea <[email protected]> Co-authored-by: jason <[email protected]> Co-authored-by: Linda Spiller <[email protected]> Co-authored-by: Alex Buck <[email protected]> Co-authored-by: myd7349 <[email protected]> Co-authored-by: Kristine Toliver <[email protected]> Co-authored-by: PRMerger15 <[email protected]> Co-authored-by: PRMerger16 <[email protected]> Co-authored-by: PRMerger Service account 2 <[email protected]> Co-authored-by: PRMerger12 <[email protected]> Co-authored-by: Tamara K <[email protected]> Co-authored-by: PRMerger4 <[email protected]> Co-authored-by: Daniel Paoliello <[email protected]> Co-authored-by: Laura Brenner <[email protected]> Co-authored-by: Austin C. Minor <[email protected]> Co-authored-by: Edward Breeveld <[email protected]> Co-authored-by: PRMerger10 <[email protected]> Co-authored-by: Miya Natsuhara <[email protected]> Co-authored-by: PRMerger14 <[email protected]>
1 parent 95ed651 commit 9d65e74

28 files changed

+806
-808
lines changed

docs/atl-mfc-shared/cstring-argument-passing.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ description: "Learn more about: CString Argument Passing"
33
title: "CString Argument Passing"
44
ms.date: "11/04/2016"
55
helpviewer_keywords: ["strings [C++], as function input/output", "argument passing [C++]", "arguments [C++], passing", "functions [C++], strings as input/output", "argument passing [C++], C strings", "passing arguments, C strings", "CString objects, passing arguments", "string arguments"]
6-
ms.assetid: a67bebff-edf1-4cf4-bbff-d1cc6a901099
76
---
8-
# CString Argument Passing
7+
# `CString` Argument Passing
98

10-
This article explains how to pass [CString](../atl-mfc-shared/reference/cstringt-class.md) objects to functions and how to return `CString` objects from functions.
9+
This article explains how to pass [`CString`](../atl-mfc-shared/reference/cstringt-class.md) objects to functions and how to return `CString` objects from functions.
1110

12-
## <a name="_core_cstring_argument.2d.passing_conventions"></a> CString Argument-Passing Conventions
11+
## <a name="_core_cstring_argument.2d.passing_conventions"></a> `CString` Argument-Passing Conventions
1312

14-
When you define a class interface, you must determine the argument-passing convention for your member functions. There are some standard rules for passing and returning `CString` objects. If you follow the rules described in [Strings as Function Inputs](#_core_strings_as_function_inputs) and [Strings as Function Outputs](#_core_strings_as_function_outputs), you will have efficient, correct code.
13+
When you define a class interface, you must determine the argument-passing convention for your member functions. There are some standard rules for passing and returning `CString` objects. If you follow the rules described in [Strings as Function Inputs](#_core_strings_as_function_inputs) and [Strings as Function Outputs](#_core_strings_as_function_outputs), you'll have efficient, correct code.
1514

1615
## <a name="_core_strings_as_function_inputs"></a> Strings as Function Inputs
1716

18-
The most efficient and secure way to use a `CString` object in called functions is to pass a `CString` object to the function. Despite the name, a `CString` object does not store a string internally as a C-style string that has a null terminator. Instead, a `CString` object keeps careful track of the number of characters it has. Having `CString` provide a LPCTSTR pointer to a null-terminated string is a small amount of work that can become significant if your code has to do it constantly. The result is temporary because any change to the `CString` contents invalidates old copies of the LPCTSTR pointer.
17+
The most efficient and secure way to use a `CString` object in called functions is to pass a `CString` object to the function. Despite the name, a `CString` object doesn't store a string internally as a C-style string that has a `NULL` terminator. Instead, a `CString` object keeps careful track of the number of characters it has. Having `CString` provide a `LPCTSTR` pointer to a `NULL` terminated string is a small amount of work that can become significant if your code has to do it constantly. The result is temporary because any change to the `CString` contents invalidates old copies of the `LPCTSTR` pointer.
1918

20-
It does make sense in some cases to provide a C-style string. For example, there can be a situation where a called function is written in C and does not support objects. In this case, coerce the `CString` parameter to LPCTSTR, and the function will get a C-style null-terminated string. You can also go the other direction and create a `CString` object by using the `CString` constructor that accepts a C-style string parameter.
19+
It does make sense in some cases to provide a C-style string. For example, there can be a situation where a called function is written in C and doesn't support objects. In this case, coerce the `CString` parameter to `LPCTSTR`, and the function will get a C-style `NULL` terminated string. You can also go the other direction and create a `CString` object by using the `CString` constructor that accepts a C-style string parameter.
2120

2221
If the string contents are to be changed by a function, declare the parameter as a nonconstant `CString` reference (`CString&`).
2322

docs/atl-mfc-shared/reference/ctimespan-class.md

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ title: "CTimeSpan Class"
44
ms.date: "10/18/2018"
55
f1_keywords: ["CTimeSpan", "ATLTIME/ATL::CTimeSpan", "ATLTIME/ATL::CTimeSpan::CTimeSpan", "ATLTIME/ATL::CTimeSpan::Format", "ATLTIME/ATL::CTimeSpan::GetDays", "ATLTIME/ATL::CTimeSpan::GetHours", "ATLTIME/ATL::CTimeSpan::GetMinutes", "ATLTIME/ATL::CTimeSpan::GetSeconds", "ATLTIME/ATL::CTimeSpan::GetTimeSpan", "ATLTIME/ATL::CTimeSpan::GetTotalHours", "ATLTIME/ATL::CTimeSpan::GetTotalMinutes", "ATLTIME/ATL::CTimeSpan::GetTotalSeconds", "ATLTIME/ATL::CTimeSpan::Serialize64"]
66
helpviewer_keywords: ["elapsed time, CTimeSpan object", "timespan", "time span", "CTimeSpan class", "shared classes, CTimeSpan", "time, elapsed"]
7-
ms.assetid: ee1e42f6-1839-477a-8435-fb26ad475140
87
---
9-
# CTimeSpan Class
8+
# `CTimeSpan` Class
109

1110
An amount of time, which is internally stored as the number of seconds in the time span.
1211

@@ -22,50 +21,50 @@ class CTimeSpan
2221

2322
|Name|Description|
2423
|----------|-----------------|
25-
|[CTimeSpan::CTimeSpan](#ctimespan)|Constructs `CTimeSpan` objects in various ways.|
24+
|[`CTimeSpan::CTimeSpan`](#ctimespan)|Constructs `CTimeSpan` objects in various ways.|
2625

2726
### Public Methods
2827

2928
|Name|Description|
3029
|----------|-----------------|
31-
|[CTimeSpan::Format](#format)|Converts a `CTimeSpan` into a formatted string.|
32-
|[CTimeSpan::GetDays](#getdays)|Returns a value that represents the number of complete days in this `CTimeSpan`.|
33-
|[CTimeSpan::GetHours](#gethours)|Returns a value that represents the number of hours in the current day (-23 through 23).|
34-
|[CTimeSpan::GetMinutes](#getminutes)|Returns a value that represents the number of minutes in the current hour (-59 through 59).|
35-
|[CTimeSpan::GetSeconds](#getseconds)|Returns a value that represents the number of seconds in the current minute (-59 through 59).|
36-
|[CTimeSpan::GetTimeSpan](#gettimespan)|Returns the value of the `CTimeSpan` object.|
37-
|[CTimeSpan::GetTotalHours](#gettotalhours)|Returns a value that represents the total number of complete hours in this `CTimeSpan`.|
38-
|[CTimeSpan::GetTotalMinutes](#gettotalminutes)|Returns a value that represents the total number of complete minutes in this `CTimeSpan`.|
39-
|[CTimeSpan::GetTotalSeconds](#gettotalseconds)|Returns a value that represents the total number of complete seconds in this `CTimeSpan`.|
40-
|[CTimeSpan::Serialize64](#serialize64)|Serializes data to or from an archive.|
30+
|[`CTimeSpan::Format`](#format)|Converts a `CTimeSpan` into a formatted string.|
31+
|[`CTimeSpan::GetDays`](#getdays)|Returns a value that represents the number of complete days in this `CTimeSpan`.|
32+
|[`CTimeSpan::GetHours`](#gethours)|Returns a value that represents the number of hours in the current day (-23 through 23).|
33+
|[`CTimeSpan::GetMinutes`](#getminutes)|Returns a value that represents the number of minutes in the current hour (-59 through 59).|
34+
|[`CTimeSpan::GetSeconds`](#getseconds)|Returns a value that represents the number of seconds in the current minute (-59 through 59).|
35+
|[`CTimeSpan::GetTimeSpan`](#gettimespan)|Returns the value of the `CTimeSpan` object.|
36+
|[`CTimeSpan::GetTotalHours`](#gettotalhours)|Returns a value that represents the total number of complete hours in this `CTimeSpan`.|
37+
|[`CTimeSpan::GetTotalMinutes`](#gettotalminutes)|Returns a value that represents the total number of complete minutes in this `CTimeSpan`.|
38+
|[`CTimeSpan::GetTotalSeconds`](#gettotalseconds)|Returns a value that represents the total number of complete seconds in this `CTimeSpan`.|
39+
|[`CTimeSpan::Serialize64`](#serialize64)|Serializes data to or from an archive.|
4140

4241
### Operators
4342

4443
|Name|Description|
4544
|-|-|
46-
|[operator + -](#operator_add_-)|Adds and subtracts `CTimeSpan` objects.|
47-
|[operator += -=](#operator_add_eq_-_eq)|Adds and subtracts a `CTimeSpan` object to and from this `CTimeSpan`.|
48-
|[operator == < etc.](#ctimespan_comparison_operators)|Compares two relative time values.|
45+
|[`operator + -`](#operator_add_-)|Adds and subtracts `CTimeSpan` objects.|
46+
|[`operator += -=`](#operator_add_eq_-_eq)|Adds and subtracts a `CTimeSpan` object to and from this `CTimeSpan`.|
47+
|[`operator == < etc.`](#ctimespan_comparison_operators)|Compares two relative time values.|
4948

5049
## Remarks
5150

52-
`CTimeSpan` does not have a base class.
51+
`CTimeSpan` doesn't have a base class.
5352

5453
`CTimeSpan` functions convert seconds to various combinations of days, hours, minutes, and seconds.
5554

56-
The `CTimeSpan` object is stored in a **__time64_t** structure, which is 8 bytes.
55+
The `CTimeSpan` object is stored in a **`__time64_t`** structure, which is 8 bytes.
5756

58-
A companion class, [CTime](../../atl-mfc-shared/reference/ctime-class.md), represents an absolute time.
57+
A companion class, [`CTime`](../../atl-mfc-shared/reference/ctime-class.md), represents an absolute time.
5958

60-
The `CTime` and `CTimeSpan` classes are not designed for derivation. Because there are no virtual functions, the size of both `CTime` and `CTimeSpan` objects is exactly 8 bytes. Most member functions are inline.
59+
The `CTime` and `CTimeSpan` classes aren't designed for derivation. Because there are no virtual functions, the size of both `CTime` and `CTimeSpan` objects is exactly 8 bytes. Most member functions are inline.
6160

6261
For more information on using `CTimeSpan`, see the articles [Date and Time](../../atl-mfc-shared/date-and-time.md), and [Time Management](../../c-runtime-library/time-management.md) in the *Run-Time Library Reference*.
6362

6463
## Requirements
6564

66-
**Header:** atltime.h
65+
**Header:** `atltime.h`
6766

68-
## <a name="ctimespan_comparison_operators"></a> CTimeSpan Comparison Operators
67+
## <a name="ctimespan_comparison_operators"></a> `CTimeSpan` Comparison Operators
6968

7069
Comparison operators.
7170

@@ -80,18 +79,18 @@ bool operator>=(CTimeSpan span) const throw();
8079

8180
### Parameters
8281

83-
*span*<br/>
82+
*`span`*\
8483
The object to compare.
8584

8685
### Return Value
8786

88-
These operators compare two relative time values. They return TRUE if the condition is true; otherwise FALSE.
87+
These operators compare two relative time values. They return `TRUE` if the condition is true; otherwise `FALSE`.
8988

9089
### Example
9190

9291
[!code-cpp[NVC_ATLMFC_Utilities#169](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_1.cpp)]
9392

94-
## <a name="ctimespan"></a> CTimeSpan::CTimeSpan
93+
## <a name="ctimespan"></a> `CTimeSpan::CTimeSpan`
9594

9695
Constructs `CTimeSpan` objects in various ways.
9796

@@ -108,13 +107,13 @@ CTimeSpan(
108107

109108
### Parameters
110109

111-
*timeSpanSrc*<br/>
110+
*`timeSpanSrc`*\
112111
A `CTimeSpan` object that already exists.
113112

114-
*time*<br/>
115-
A **__time64_t** time value, which is the number of seconds in the time span.
113+
*`time`*\
114+
A **`__time64_t`** time value, which is the number of seconds in the time span.
116115

117-
*lDays*, *nHours*, *nMins*, *nSecs*<br/>
116+
*`lDays`*, *`nHours`*, *`nMins`*, *`nSecs`*\
118117
Days, hours, minutes, and seconds, respectively.
119118

120119
### Remarks
@@ -125,7 +124,7 @@ All these constructors create a new `CTimeSpan` object initialized with the spec
125124

126125
- `CTimeSpan( const CTimeSpan& );` Constructs a `CTimeSpan` object from another `CTimeSpan` value.
127126

128-
- `CTimeSpan( __time64_t );` Constructs a `CTimeSpan` object from a **__time64_t** type.
127+
- `CTimeSpan( __time64_t );` Constructs a `CTimeSpan` object from a **`__time64_t`** type.
129128

130129
- `CTimeSpan( LONG, int, int, int );` Constructs a `CTimeSpan` object from components with each component constrained to the following ranges:
131130

@@ -142,7 +141,7 @@ Note that the Debug version of the Microsoft Foundation Class Library asserts if
142141

143142
[!code-cpp[NVC_ATLMFC_Utilities#162](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_2.cpp)]
144143

145-
## <a name="format"></a> CTimeSpan::Format
144+
## <a name="format"></a> `CTimeSpan::Format`
146145

147146
Generates a formatted string that corresponds to this `CTimeSpan`.
148147

@@ -154,20 +153,20 @@ CString Format(UINT nID) const;
154153

155154
### Parameters
156155

157-
*pFormat*, *pszFormat*<br/>
156+
*`pFormat`*, *`pszFormat`*\
158157
A formatting string similar to the `printf` formatting string. Formatting codes, preceded by a percent (`%`) sign, are replaced by the corresponding `CTimeSpan` component. Other characters in the formatting string are copied unchanged to the returned string. The value and meaning of the formatting codes for `Format` are listed below:
159158

160-
- **%D** Total days in this `CTimeSpan`
159+
- **`%D`** Total days in this `CTimeSpan`
161160

162-
- **%H** Hours in the current day
161+
- **`%H`** Hours in the current day
163162

164-
- **%M** Minutes in the current hour
163+
- **`%M`** Minutes in the current hour
165164

166-
- **%S** Seconds in the current minute
165+
- **`%S`** Seconds in the current minute
167166

168-
- **%%** Percent sign
167+
- **`%%`** Percent sign
169168

170-
*nID*<br/>
169+
*`nID`*\
171170
The ID of the string that identifies this format.
172171

173172
### Return Value
@@ -176,13 +175,13 @@ A `CString` object that contains the formatted time.
176175

177176
### Remarks
178177

179-
The Debug version of the library checks the formatting codes and asserts if the code is not in the list above.
178+
The Debug version of the library checks the formatting codes and asserts if the code isn't in the list above.
180179

181180
### Example
182181

183182
[!code-cpp[NVC_ATLMFC_Utilities#163](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_3.cpp)]
184183

185-
## <a name="getdays"></a> CTimeSpan::GetDays
184+
## <a name="getdays"></a> `CTimeSpan::GetDays`
186185

187186
Returns a value that represents the number of complete days in this `CTimeSpan`.
188187

@@ -196,13 +195,13 @@ Returns the number of complete 24-hour days in the time span. This value may be
196195

197196
### Remarks
198197

199-
Note that Daylight Savings Time can cause `GetDays` to return a potentially surprising result. For example, when DST is in effect, `GetDays` reports the number of days between April 1 and May 1 as 29, not 30, because one day in April is shortened by an hour and therefore does not count as a complete day.
198+
Note that Daylight Savings Time (DST) can cause `GetDays` to return a potentially surprising result. For example, when DST is in effect, `GetDays` reports the number of days between April 1 and May 1 as 29, not 30, because one day in April is shortened by an hour and therefore doesn't count as a complete day.
200199

201200
### Example
202201

203202
[!code-cpp[NVC_ATLMFC_Utilities#164](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_4.cpp)]
204203

205-
## <a name="gethours"></a> CTimeSpan::GetHours
204+
## <a name="gethours"></a> `CTimeSpan::GetHours`
206205

207206
Returns a value that represents the number of hours in the current day (-23 through 23).
208207

@@ -218,7 +217,7 @@ Returns the number of hours in the current day. The range is -23 through 23.
218217

219218
[!code-cpp[NVC_ATLMFC_Utilities#165](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_5.cpp)]
220219

221-
## <a name="getminutes"></a> CTimeSpan::GetMinutes
220+
## <a name="getminutes"></a> `CTimeSpan::GetMinutes`
222221

223222
Returns a value that represents the number of minutes in the current hour (-59 through 59).
224223

@@ -232,9 +231,9 @@ Returns the number of minutes in the current hour. The range is -59 through 59.
232231

233232
### Example
234233

235-
See the example for [GetHours](#gethours).
234+
See the example for [`GetHours`](#gethours).
236235

237-
## <a name="getseconds"></a> CTimeSpan::GetSeconds
236+
## <a name="getseconds"></a> `CTimeSpan::GetSeconds`
238237

239238
Returns a value that represents the number of seconds in the current minute (-59 through 59).
240239

@@ -248,9 +247,9 @@ Returns the number of seconds in the current minute. The range is -59 through 59
248247

249248
### Example
250249

251-
See the example for [GetHours](#gethours).
250+
See the example for [`GetHours`](#gethours).
252251

253-
## <a name="gettimespan"></a> CTimeSpan::GetTimeSpan
252+
## <a name="gettimespan"></a> `CTimeSpan::GetTimeSpan`
254253

255254
Returns the value of the `CTimeSpan` object.
256255

@@ -262,7 +261,7 @@ __ time64_t GetTimeSpan() const throw();
262261

263262
Returns the current value of the `CTimeSpan` object.
264263

265-
## <a name="gettotalhours"></a> CTimeSpan::GetTotalHours
264+
## <a name="gettotalhours"></a> `CTimeSpan::GetTotalHours`
266265

267266
Returns a value that represents the total number of complete hours in this `CTimeSpan`.
268267

@@ -278,7 +277,7 @@ Returns the total number of complete hours in this `CTimeSpan`.
278277

279278
[!code-cpp[NVC_ATLMFC_Utilities#166](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_6.cpp)]
280279

281-
## <a name="gettotalminutes"></a> CTimeSpan::GetTotalMinutes
280+
## <a name="gettotalminutes"></a> `CTimeSpan::GetTotalMinutes`
282281

283282
Returns a value that represents the total number of complete minutes in this `CTimeSpan`.
284283

@@ -292,9 +291,9 @@ Returns the total number of complete minutes in this `CTimeSpan`.
292291

293292
### Example
294293

295-
See the example for [GetTotalHours](#gettotalhours).
294+
See the example for [`GetTotalHours`](#gettotalhours).
296295

297-
## <a name="gettotalseconds"></a> CTimeSpan::GetTotalSeconds
296+
## <a name="gettotalseconds"></a> `CTimeSpan::GetTotalSeconds`
298297

299298
Returns a value that represents the total number of complete seconds in this `CTimeSpan`.
300299

@@ -308,9 +307,9 @@ Returns the total number of complete seconds in this `CTimeSpan`.
308307

309308
### Example
310309

311-
See the example for [GetTotalHours](#gettotalhours).
310+
See the example for [`GetTotalHours`](#gettotalhours).
312311

313-
## <a name="operator_add_-"></a> CTimeSpan::operator +, -
312+
## <a name="operator_add_-"></a> `CTimeSpan::operator +`, `CTimeSpan::operator -`
314313

315314
Adds and subtracts `CTimeSpan` objects.
316315

@@ -321,7 +320,7 @@ CTimeSpan operator-(CTimeSpan span) const throw();
321320

322321
### Parameters
323322

324-
*span*<br/>
323+
*`span`*\
325324
The value to add to the `CTimeSpan` object.
326325

327326
### Return Value
@@ -336,7 +335,7 @@ These two operators allow you to add and subtract `CTimeSpan` objects to and fro
336335

337336
[!code-cpp[NVC_ATLMFC_Utilities#167](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_7.cpp)]
338337

339-
## <a name="operator_add_eq_-_eq"></a> CTimeSpan::operator +=, -=
338+
## <a name="operator_add_eq_-_eq"></a> `CTimeSpan::operator +=`, `CTimeSpan::operator -=`
340339

341340
Adds and subtracts a `CTimeSpan` object to and from this `CTimeSpan`.
342341

@@ -347,7 +346,7 @@ CTimeSpan& operator-=(CTimeSpan span) throw();
347346

348347
### Parameters
349348

350-
*span*<br/>
349+
*`span`*\
351350
The value to add to the `CTimeSpan` object.
352351

353352
### Return Value
@@ -362,7 +361,7 @@ These operators allow you to add and subtract a `CTimeSpan` object to and from t
362361

363362
[!code-cpp[NVC_ATLMFC_Utilities#168](../../atl-mfc-shared/codesnippet/cpp/ctimespan-class_8.cpp)]
364363

365-
## <a name="serialize64"></a> CTimeSpan::Serialize64
364+
## <a name="serialize64"></a> `CTimeSpan::Serialize64`
366365

367366
> [!NOTE]
368367
> This method is only available in MFC projects.
@@ -375,7 +374,7 @@ CArchive& Serialize64(CArchive& ar);
375374

376375
### Parameters
377376

378-
*ar*<br/>
377+
*`ar`*\
379378
The `CArchive` object that you want to update.
380379

381380
### Return Value
@@ -384,11 +383,11 @@ The updated `CArchive` object.
384383

385384
## See also
386385

387-
[asctime, _wasctime](../../c-runtime-library/reference/asctime-wasctime.md)<br/>
388-
[_ftime, _ftime32, _ftime64](../../c-runtime-library/reference/ftime-ftime32-ftime64.md)<br/>
389-
[gmtime, _gmtime32, _gmtime64](../../c-runtime-library/reference/gmtime-gmtime32-gmtime64.md)<br/>
390-
[localtime, _localtime32, _localtime64](../../c-runtime-library/reference/localtime-localtime32-localtime64.md)<br/>
391-
[strftime, wcsftime, _strftime_l, _wcsftime_l](../../c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l.md)<br/>
392-
[time, _time32, _time64](../../c-runtime-library/reference/time-time32-time64.md)<br/>
393-
[Hierarchy Chart](../../mfc/hierarchy-chart.md)<br/>
386+
[`asctime`, `_wasctime`](../../c-runtime-library/reference/asctime-wasctime.md)\
387+
[`_ftime`, `_ftime32`, `_ftime64`](../../c-runtime-library/reference/ftime-ftime32-ftime64.md)\
388+
[`gmtime`, `_gmtime32`, `_gmtime64`](../../c-runtime-library/reference/gmtime-gmtime32-gmtime64.md)\
389+
[`localtime`, `_localtime32`, `_localtime64`](../../c-runtime-library/reference/localtime-localtime32-localtime64.md)\
390+
[`strftime`, `wcsftime`, `_strftime_l`, `_wcsftime_l`](../../c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l.md)\
391+
[`time`, `_time32`, `_time64`](../../c-runtime-library/reference/time-time32-time64.md)\
392+
[Hierarchy Chart](../../mfc/hierarchy-chart.md)\
394393
[ATL/MFC Shared Classes](../../atl-mfc-shared/atl-mfc-shared-classes.md)

0 commit comments

Comments
 (0)