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
{{ message }}
Repository navigation
Commit 7f06968
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/crect-class.md
+3-20Lines changed: 3 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,8 +89,7 @@ A `CRect` contains member variables that define the top-left and bottom-right po
89
89
90
90
When specifying a `CRect`, you must be careful to construct it so that it is normalized — in other words, such that the value of the left coordinate is less than the right and the top is less than the bottom. For example, a top left of (10,10) and bottom right of (20,20) defines a normalized rectangle but a top left of (20,20) and bottom right of (10,10) defines a non-normalized rectangle. If the rectangle is not normalized, many `CRect` member functions may return incorrect results. (See [CRect::NormalizeRect](#normalizerect) for a list of these functions.) Before you call a function that requires normalized rectangles, you can normalize non-normalized rectangles by calling the `NormalizeRect` function.
91
91
92
-
Use caution when manipulating a `CRect` with the [CDC::DPtoLP](../../mfc/reference/cdc-class.md#dptolp) and [CDC::LPtoDP](../../mfc/reference/cdc-class.md#lptodp) member functions. If the mapping mode of a display context is such that the y-extent is negative, as in `MM_LOENGLISH`, then `CDC::DPtoLP` will transform the `CRect` so that its top is greater than the bottom. Functions such as `Height` and `Size` will then return negative values for the height of the transformed `CRect`, and the rectangle will be non-normalized.
93
-
92
+
Use caution when manipulating a `CRect` with the [CDC::DPtoLP](../../mfc/reference/cdc-class.md#dptolp) and [CDC::LPtoDP](../../mfc/reference/cdc-class.md#lptodp) member functions. If the mapping mode of a display context is such that the y-extent is negative, as in `MM_LOENGLISH`, then `CDC::DPtoLP` will transform the `CRect` so that its top is greater than the bottom. Functions such as `Height` and `Size` will then return negative values for the height of the transformed `CRect`, and the rectangle will be non-normalized.
94
93
95
94
When using overloaded `CRect` operators, the first operand must be a `CRect`; the second can be either a [RECT](../../mfc/reference/rect-structure.md) structure or a `CRect` object.
A **__time64_t** time value, which is the number of seconds after January 1, 1970 UTC. Note that this will be adjusted to your local time. For example, if you are in New York and create a `CTime` object by passing a parameter of 0, [CTime::GetMonth](#getmonth) will return 12.
134
+
A `__time64_t` time value, which is the number of seconds after January 1, 1970 UTC. Note that this will be adjusted to your local time. For example, if you are in New York and create a `CTime` object by passing a parameter of 0, [CTime::GetMonth](#getmonth) will return 12.
This class provides an IP version agnostic approach for looking up network addresses for use with Windows sockets API functions and socket wrappers in libraries.
46
46
47
-
The members of this class that are used to look up network addresses use the Win32 API function [getaddrinfo](/windows/desktop/api/ws2tcpip/nf-ws2tcpip-getaddrinfo).
47
+
The members of this class that are used to look up network addresses use the Win32 API function [getaddrinfo](/windows/desktop/api/ws2tcpip/nf-ws2tcpip-getaddrinfo). The ANSI or UNICODE version of the function is called depending on whether your code is compiled for ANSI or UNICODE.
48
48
49
49
This class supports both IPv4 andIPv6 network addresses.
50
50
@@ -70,15 +70,15 @@ Call this method to convert the provided host name to the host address.
70
70
71
71
```
72
72
int FindAddr(
73
-
const char *szHost,
74
-
const char *szPortOrServiceName,
73
+
const TCHAR *szHost,
74
+
const TCHAR *szPortOrServiceName,
75
75
int flags,
76
76
int addr_family,
77
77
int sock_type,
78
78
int ai_proto);
79
79
80
80
int FindAddr(
81
-
const char *szHost,
81
+
const TCHAR *szHost,
82
82
int nPortNo,
83
83
int flags,
84
84
int addr_family,
@@ -123,10 +123,10 @@ Call this method to convert the IPv4 host name to the host address.
123
123
124
124
```
125
125
int FindINET4Addr(
126
-
const char *szHost,
126
+
const TCHAR *szHost,
127
127
int nPortNo,
128
-
int flags,
129
-
int sock_type,);
128
+
int flags = 0,
129
+
int sock_type = SOCK_STREAM);
130
130
```
131
131
132
132
### Parameters
@@ -157,10 +157,10 @@ Call this method to convert the IPv6 host name to the host address.
157
157
158
158
```
159
159
int FindINET6Addr(
160
-
const char *szHost,
160
+
const TCHAR *szHost,
161
161
int nPortNo,
162
-
int flags,
163
-
int sock_type,);
162
+
int flags = 0,
163
+
int sock_type = SOCK_STREAM);
164
164
```
165
165
166
166
### Parameters
@@ -190,7 +190,7 @@ This method calls the Win32 API function [getaddrinfo](/windows/desktop/api/ws2t
190
190
Call this method to return a pointer to a specific element in the `addrinfo` list.
Copy file name to clipboardExpand all lines: docs/build/reference/oy-frame-pointer-omission.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Suppresses creation of frame pointers on the call stack.
22
22
23
23
## Remarks
24
24
25
-
This option speeds function calls, because no frame pointers need to be set up and removed. It also frees one more register, (EBP on the Intel 386 or later) for storing frequently used variables and sub-expressions.
25
+
This option speeds function calls, because no frame pointers need to be set up and removed. It also frees one more registerfor general usage.
26
26
27
27
**/Oy** enables frame-pointer omission and **/Oy-** disables omission. **/Oy** is available only in x86 compilers.
28
28
@@ -52,4 +52,4 @@ The **/Oy** compiler option makes using the debugger more difficult because the
Copy file name to clipboardExpand all lines: docs/c-language/abort-function-c.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "abort Function (C) | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
4
+
ms.date: "10/24/2018"
5
5
ms.technology: ["cpp-language"]
6
6
ms.topic: "language-reference"
7
7
dev_langs: ["C++"]
@@ -15,8 +15,8 @@ ms.workload: ["cplusplus"]
15
15
16
16
**ANSI 4.10.4.1** The behavior of the **abort** function with regard to open and temporary files
17
17
18
-
The **abort** function does not close files that are open or temporary. It does not flush stream buffers.
18
+
The **abort** function does not close files that are open or temporary. It does not flush stream buffers. For more information, see [abort](../c-runtime-library/reference/abort.md).
0 commit comments