You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/implementation-of-a-custom-string-manager-basic-method.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,13 @@ The easiest way to customize the memory allocation scheme for string data is to
16
16
17
17
-[CCRTHeap](../atl/reference/ccrtheap-class.md) Wraps the standard CRT heap functions ([malloc](../c-runtime-library/reference/malloc.md), [free](../c-runtime-library/reference/free.md), and [realloc](../c-runtime-library/reference/realloc.md))
18
18
19
-
-[CWin32Heap](../atl/reference/cwin32heap-class.md) Wraps a Win32 heap handle, using [HeapAlloc](https://msdn.microsoft.com/library/windows/desktop/aa366597), [HeapFree](https://msdn.microsoft.com/library/windows/desktop/aa366701), and [HeapRealloc](https://msdn.microsoft.com/library/windows/desktop/aa366704)
19
+
-[CWin32Heap](../atl/reference/cwin32heap-class.md) Wraps a Win32 heap handle, using [HeapAlloc](/windows/desktop/api/heapapi/nf-heapapi-heapalloc), [HeapFree](/windows/desktop/api/heapapi/nf-heapapi-heapfree), and [HeapRealloc](/windows/desktop/api/heapapi/nf-heapapi-heaprealloc)
20
20
21
-
-[CLocalHeap](../atl/reference/clocalheap-class.md) Wraps the Win32 APIs: [LocalAlloc](https://msdn.microsoft.com/library/windows/desktop/aa366723), [LocalFree](https://msdn.microsoft.com/library/windows/desktop/aa366730), and [LocalRealloc](https://msdn.microsoft.com/library/windows/desktop/aa366742)
21
+
-[CLocalHeap](../atl/reference/clocalheap-class.md) Wraps the Win32 APIs: [LocalAlloc](/windows/desktop/api/winbase/nf-winbase-localalloc), [LocalFree](/windows/desktop/api/winbase/nf-winbase-localfree), and [LocalRealloc](/windows/desktop/api/winbase/nf-winbase-localrealloc)
22
22
23
-
-[CGlobalHeap](../atl/reference/cglobalheap-class.md) Wraps the Win32 APIs: [GlobalAlloc](https://msdn.microsoft.com/library/windows/desktop/aa366574), [GlobalFree](https://msdn.microsoft.com/library/windows/desktop/aa366579), and [GlobalRealloc](https://msdn.microsoft.com/library/windows/desktop/aa366590).
23
+
-[CGlobalHeap](../atl/reference/cglobalheap-class.md) Wraps the Win32 APIs: [GlobalAlloc](/windows/desktop/api/winbase/nf-winbase-globalalloc), [GlobalFree](/windows/desktop/api/winbase/nf-winbase-globalfree), and [GlobalRealloc](/windows/desktop/api/winbase/nf-winbase-globalrealloc).
24
24
25
-
-[CComHeap](../atl/reference/ccomheap-class.md) Wraps the COM Task Allocator APIs: [CoTaskMemAlloc](https://msdn.microsoft.com/library/windows/desktop/ms692727), [CoTaskMemFree](https://msdn.microsoft.com/library/windows/desktop/ms680722), and [CoTaskMemRealloc](https://msdn.microsoft.com/library/windows/desktop/ms687280)
25
+
-[CComHeap](../atl/reference/ccomheap-class.md) Wraps the COM Task Allocator APIs: [CoTaskMemAlloc](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemalloc), [CoTaskMemFree](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemfree), and [CoTaskMemRealloc](/windows/desktop/api/combaseapi/nf-combaseapi-cotaskmemrealloc)
26
26
27
27
For the purpose of string memory management, the most useful class is `CWin32Heap` because it allows you to create multiple independent heaps. For example, if you wanted to use a separate heap just for strings, you could do the following:
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cfiletime-class.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ class CFileTime : public FILETIME
82
82
|Day|Hour \* 24|
83
83
|Week|Day \* 7|
84
84
85
-
**Note** Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on the Windows NT FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time, but NTFS records times on disk in UTC. For more information, see [File Times](https://msdn.microsoft.com/library/windows/desktop/ms724290).
85
+
**Note** Not all file systems can record creation and last access time and not all file systems record them in the same manner. For example, on the Windows NT FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day (the access date). On NTFS, access time has a resolution of 1 hour. Furthermore, FAT records times on disk in local time, but NTFS records times on disk in UTC. For more information, see [File Times](/windows/desktop/SysInfo/file-times).
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cimage-class.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -304,7 +304,7 @@ BOOL BitBlt(
304
304
The logical y-coordinate of the upper left corner of the destination rectangle.
305
305
306
306
*dwROP*
307
-
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](https://msdn.microsoft.com/library/windows/desktop/dd183370) in the Windows SDK for a list of other raster-operation codes and their descriptions.
307
+
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
308
308
309
309
*pointDest*
310
310
A [POINT](https://msdn.microsoft.com/library/windows/desktop/dd162805) structure indicating the upper left corner of the destination rectangle.
@@ -331,7 +331,7 @@ BOOL BitBlt(
331
331
Nonzero if successful; otherwise zero.
332
332
333
333
### Remarks
334
-
For more information, see [BitBlt](https://msdn.microsoft.com/library/windows/desktop/dd183370) in the Windows SDK.
334
+
For more information, see [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK.
A pointer to the array of [RGBQUAD](https://msdn.microsoft.com/library/windows/desktop/dd162938) structures to retrieve the color table entries.
586
+
A pointer to the array of [RGBQUAD](/windows/desktop/api/wingdi/ns-wingdi-tagrgbquad) structures to retrieve the color table entries.
587
587
588
588
## <a name="getdc"></a> CImage::GetDC
589
589
Retrieves the device context that currently has the image selected into it.
@@ -1131,7 +1131,7 @@ BOOL PlgBlt(
1131
1131
### Remarks
1132
1132
If *hbmMask* identifies a valid monochrome bitmap, `PlgBit` uses this bitmap to mask the bits of color data from the source rectangle.
1133
1133
1134
-
This method applies to Windows NT, versions 4.0 and later only. See [PlgBlt](https://msdn.microsoft.com/library/windows/desktop/dd162804) in the Windows SDK for more detailed information.
1134
+
This method applies to Windows NT, versions 4.0 and later only. See [PlgBlt](/windows/desktop/api/wingdi/nf-wingdi-plgblt) in the Windows SDK for more detailed information.
1135
1135
1136
1136
## <a name="releasedc"></a> CImage::ReleaseDC
1137
1137
Releases the device context.
@@ -1209,7 +1209,7 @@ void SetColorTable(
1209
1209
The number of color table entries to set.
1210
1210
1211
1211
*prgbColors*
1212
-
A pointer to the array of [RGBQUAD](https://msdn.microsoft.com/library/windows/desktop/dd162938) structures to set the color table entries.
1212
+
A pointer to the array of [RGBQUAD](/windows/desktop/api/wingdi/ns-wingdi-tagrgbquad) structures to set the color table entries.
1213
1213
1214
1214
### Remarks
1215
1215
This method supports only DIB section bitmaps.
@@ -1349,7 +1349,7 @@ BOOL StretchBlt(
1349
1349
The height, in logical units, of the destination rectangle.
1350
1350
1351
1351
*dwROP*
1352
-
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](https://msdn.microsoft.com/library/windows/desktop/dd183370) in the Windows SDK for a list of other raster-operation codes and their descriptions.
1352
+
The raster operation to be performed. Raster-operation codes define exactly how to combine the bits of the source, the destination, and the pattern (as defined by the currently selected brush) to form the destination. See [BitBlt](/windows/desktop/api/wingdi/nf-wingdi-bitblt) in the Windows SDK for a list of other raster-operation codes and their descriptions.
1353
1353
1354
1354
*rectDest*
1355
1355
A reference to a [RECT](https://msdn.microsoft.com/library/windows/desktop/dd162897) structure, identifying the destination.
@@ -1373,7 +1373,7 @@ BOOL StretchBlt(
1373
1373
Nonzero if successful, otherwise 0.
1374
1374
1375
1375
### Remarks
1376
-
For more information, see [StretchBlt](https://msdn.microsoft.com/library/windows/desktop/dd145120) in the Windows SDK.
1376
+
For more information, see [StretchBlt](/windows/desktop/api/wingdi/nf-wingdi-stretchblt) in the Windows SDK.
A `SYSTEMTIME` structure to be converted to a date/time value and copied into the new `COleDateTime` object.
179
179
180
180
*filetimeSrc*
181
-
A `FILETIME` structure to be converted to a date/time value and copied into the new `COleDateTime` object. Note that `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a local time in the structure, your results will be incorrect. See [File Times](https://msdn.microsoft.com/library/windows/desktop/ms724290) in the Windows SDK for more information.
181
+
A `FILETIME` structure to be converted to a date/time value and copied into the new `COleDateTime` object. Note that `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a local time in the structure, your results will be incorrect. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
-`COleDateTime(`*systimeSrc***)** Constructs a `COleDateTime` object from a `SYSTEMTIME` value.
219
219
220
-
-`COleDateTime(``filetimeSrc`**)** Constructs a `COleDateTime` object from a `FILETIME` value. . Note that `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a local time in the structure, your results will be incorrect. See [File Times](https://msdn.microsoft.com/library/windows/desktop/ms724290) in the Windows SDK for more information.
220
+
-`COleDateTime(``filetimeSrc`**)** Constructs a `COleDateTime` object from a `FILETIME` value. . Note that `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a local time in the structure, your results will be incorrect. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
221
221
222
222
-`COleDateTime(``nYear`, `nMonth`, `nDay`, `nHour`, `nMin`, `nSec`**)** Constructs a `COleDateTime` object from the specified numerical values.
- VAR_DATEVALUEONLY Ignore the time portion during parsing.
256
256
257
257
*lcid*
258
-
Indicates locale ID to use for the conversion. For more information about language identifiers, see [Language Identifiers](https://msdn.microsoft.com/library/windows/desktop/dd318691).
258
+
Indicates locale ID to use for the conversion. For more information about language identifiers, see [Language Identifiers](/windows/desktop/Intl/language-identifiers).
259
259
260
260
*lpszFormat*
261
261
A formatting string similar to the `printf` formatting string. Each formatting code, preceded by a percent ( `%`) sign, is replaced by the corresponding `COleDateTime` component. Other characters in the formatting string are copied unchanged to the returned string. See the run-time function [strftime](../../c-runtime-library/reference/strftime-wcsftime-strftime-l-wcsftime-l.md) for more information. The value and meaning of the formatting codes for `Format` are:
-**operator =(**`udate`**)** The `UDATE` value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; if unsuccessful, it is set to invalid. A `UDATE` structure represents an "unpacked" date. See the function [VarDateFromUdate](/previous-versions/windows/desktop/api/oleauto/nf-oleauto-vardatefromudate) for more details.
739
739
740
-
-**operator =(**`filetimeSrc`**)** The [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; otherwise it is set to invalid. `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a UTC time in the structure, your results will be converted from UTC time to local time, and will be stored as variant time. This behavior is the same as in Visual C++ 6.0 and Visual C++.NET 2003 SP2. See [File Times](https://msdn.microsoft.com/library/windows/desktop/ms724290) in the Windows SDK for more information.
740
+
-**operator =(**`filetimeSrc`**)** The [FILETIME](https://msdn.microsoft.com/library/windows/desktop/ms724284) value is converted and copied into this `COleDateTime` object. If the conversion is successful, the status of this object is set to valid; otherwise it is set to invalid. `FILETIME` uses Universal Coordinated Time (UTC), so if you pass a UTC time in the structure, your results will be converted from UTC time to local time, and will be stored as variant time. This behavior is the same as in Visual C++ 6.0 and Visual C++.NET 2003 SP2. See [File Times](/windows/desktop/SysInfo/file-times) in the Windows SDK for more information.
741
741
742
742
For more information, see the [VARIANT](/previous-versions/windows/desktop/api/oaidl/ns-oaidl-tagvariant) entry in the Windows SDK.
For more information about reference counting, see the following articles:
432
432
433
-
- [Managing Object Lifetimes through Reference Counting](https://msdn.microsoft.com/library/windows/desktop/ms687260) in the Windows SDK.
433
+
- [Managing Object Lifetimes through Reference Counting](/windows/desktop/com/managing-object-lifetimes-through-reference-counting) in the Windows SDK.
434
434
435
-
- [Implementing Reference Counting](https://msdn.microsoft.com/library/windows/desktop/ms693431) in the Windows SDK.
435
+
- [Implementing Reference Counting](/windows/desktop/com/implementing-reference-counting) in the Windows SDK.
436
436
437
-
- [Rules for Managing Reference Counts](https://msdn.microsoft.com/library/windows/desktop/ms692481) in the Windows SDK.
437
+
- [Rules for Managing Reference Counts](/windows/desktop/com/rules-for-managing-reference-counts) in the Windows SDK.
438
438
439
439
### Example
440
440
The following example demonstrates the use of `CSimpleStringT::GetBufferSetLength`.
@@ -558,11 +558,11 @@ PXSTR LockBuffer();
558
558
559
559
For more information about reference counting, see the following articles:
560
560
561
-
-[Managing Object Lifetimes through Reference Counting](https://msdn.microsoft.com/library/windows/desktop/ms687260) in the Windows SDK
561
+
-[Managing Object Lifetimes through Reference Counting](/windows/desktop/com/managing-object-lifetimes-through-reference-counting) in the Windows SDK
562
562
563
-
-[Implementing Reference Counting](https://msdn.microsoft.com/library/windows/desktop/ms693431) in the Windows SDK
563
+
-[Implementing Reference Counting](/windows/desktop/com/implementing-reference-counting) in the Windows SDK
564
564
565
-
-[Rules for Managing Reference Counts](https://msdn.microsoft.com/library/windows/desktop/ms692481) in the Windows SDK
565
+
-[Rules for Managing Reference Counts](/windows/desktop/com/rules-for-managing-reference-counts) in the Windows SDK
566
566
567
567
### Example
568
568
The following example demonstrates the use of `CSimpleStringT::LockBuffer`.
0 commit comments