Skip to content

Commit f101627

Browse files
author
Colin Robertson
authored
Merge pull request #1435 from msebolt/docset-changes-pr5
docset changes minor part2
2 parents 9b4da52 + 3ff4f88 commit f101627

18 files changed

+453
-460
lines changed

docs/atl-mfc-shared/cstring-operations-relating-to-c-style-strings.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Sometimes you may require a copy of `CString` data to modify directly. Use the m
4646
[!code-cpp[NVC_ATLMFC_Utilities#189](../atl-mfc-shared/codesnippet/cpp/cstring-operations-relating-to-c-style-strings_1.cpp)]
4747

4848
> [!NOTE]
49-
> The third argument to `strcpy_s` (or the Unicode/MBCS-portable `_tcscpy_s`) is either a `const wchar_t*` (Unicode) or a `const char*` (ANSI). The example above passes a `CString` for this argument. The C++ compiler automatically applies the conversion function defined for the `CString` class that converts a `CString` to an `LPCTSTR`. The ability to define casting operations from one type to another is one of the most useful features of C++.
49+
> The third argument to `strcpy_s` (or the Unicode/MBCS-portable `_tcscpy_s`) is either a `const wchar_t*` (Unicode) or a `const char*` (ANSI). The example above passes a `CString` for this argument. The C++ compiler automatically applies the conversion function defined for the `CString` class that converts a `CString` to an `LPCTSTR`. The ability to define casting operations from one type to another is one of the most useful features of C++.
5050
5151
## <a name="_core_working_with_standard_run.2d.time_library_string_functions"></a> Working with Standard Run-Time Library String Functions
5252

@@ -62,13 +62,13 @@ There are some situations where it makes sense to directly modify the `CString`
6262

6363
The `GetBuffer` and `ReleaseBuffer` methods offer access to the internal character buffer of a `CString` object and let you modify it directly. The following steps show how to use these functions for this purpose.
6464

65-
#### To use GetBuffer and ReleaseBuffer to access the internal character buffer of a CString object
65+
### To use GetBuffer and ReleaseBuffer to access the internal character buffer of a CString object
6666

6767
1. Call `GetBuffer` for a `CString` object and specify the length of the buffer you require.
6868

69-
2. Use the pointer returned by `GetBuffer` to write characters directly into the `CString` object.
69+
1. Use the pointer returned by `GetBuffer` to write characters directly into the `CString` object.
7070

71-
3. Call `ReleaseBuffer` for the `CString` object to update all the internal `CString` state information, for example, the length of the string. After you modify the contents of a `CString` object directly, you must call `ReleaseBuffer` before you call any other `CString` member functions.
71+
1. Call `ReleaseBuffer` for the `CString` object to update all the internal `CString` state information, for example, the length of the string. After you modify the contents of a `CString` object directly, you must call `ReleaseBuffer` before you call any other `CString` member functions.
7272

7373
## <a name="_core_using_cstring_objects_with_variable_argument_functions"></a> Using CString Objects with Variable Argument Functions
7474

@@ -92,4 +92,3 @@ For most function results, you can simply return a `CString` object by value.
9292

9393
[Strings (ATL/MFC)](../atl-mfc-shared/strings-atl-mfc.md)<br/>
9494
[CString Argument Passing](../atl-mfc-shared/cstring-argument-passing.md)
95-

docs/atl-mfc-shared/current-time-automation-classes.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@ ms.workload: ["cplusplus"]
1515

1616
The following procedure shows how to create a `COleDateTime` object and initialize it with the current time.
1717

18-
#### To get the current time
18+
## To get the current time
1919

2020
1. Create a `COleDateTime` object.
2121

22-
2. Call `GetCurrentTime`.
22+
1. Call `GetCurrentTime`.
2323

2424
[!code-cpp[NVC_ATLMFC_Utilities#177](../atl-mfc-shared/codesnippet/cpp/current-time-automation-classes_1.cpp)]
2525

2626
## See Also
2727

2828
[Date and Time: Automation Support](../atl-mfc-shared/date-and-time-automation-support.md)
29-

docs/atl-mfc-shared/current-time-general-purpose-classes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.workload: ["cplusplus"]
1515

1616
The following procedure shows how to create a `CTime` object and initialize it with the current time.
1717

18-
#### To get the current time
18+
### To get the current time
1919

2020
1. Allocate a `CTime` object, as follows:
2121

@@ -24,7 +24,7 @@ The following procedure shows how to create a `CTime` object and initialize it w
2424
> [!NOTE]
2525
> Uninitialized `CTime` objects are not initialized to a valid time.
2626
27-
2. Call the `CTime::GetCurrentTime` function to get the current time from the operating system. This function returns a `CTime` object that can be used to set the value of `CTime`, as follows:
27+
1. Call the `CTime::GetCurrentTime` function to get the current time from the operating system. This function returns a `CTime` object that can be used to set the value of `CTime`, as follows:
2828

2929
[!code-cpp[NVC_ATLMFC_Utilities#172](../atl-mfc-shared/codesnippet/cpp/current-time-general-purpose-classes_2.cpp)]
3030

docs/atl-mfc-shared/date-and-time-systemtime-support.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,3 @@ You most likely will not use `CTime` `FILETIME` initialization directly. If you
4141
## See Also
4242

4343
[Date and Time](../atl-mfc-shared/date-and-time.md)
44-

docs/atl-mfc-shared/elapsed-time-automation-classes.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,20 @@ ms.workload: ["cplusplus"]
1515

1616
This procedure shows how to calculate the difference between two `CTime` objects and get a `CTimeSpan` result.
1717

18-
#### To calculate elapsed time
18+
## To calculate elapsed time
1919

2020
1. Create two `COleDateTime` objects.
2121

22-
2. Set one of the `COleDateTime` objects to the current time.
22+
1. Set one of the `COleDateTime` objects to the current time.
2323

24-
3. Perform some time-consuming task.
24+
1. Perform some time-consuming task.
2525

26-
4. Set the other `COleDateTime` object to the current time.
26+
1. Set the other `COleDateTime` object to the current time.
2727

28-
5. Take the difference between the two times.
28+
1. Take the difference between the two times.
2929

3030
[!code-cpp[NVC_ATLMFC_Utilities#178](../atl-mfc-shared/codesnippet/cpp/elapsed-time-automation-classes_1.cpp)]
3131

3232
## See Also
3333

3434
[Date and Time: Automation Support](../atl-mfc-shared/date-and-time-automation-support.md)
35-

0 commit comments

Comments
 (0)