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/reference/compiler-options-macros.md
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ These macros control specific compiler features.
17
17
|[`_ATL_ENABLE_PTM_WARNING`](#_atl_enable_ptm_warning)|Define this macro to require C++ standard syntax. It generates the C4867 compiler error when non-standard syntax is used to initialize a pointer to a member function.|
18
18
|[`_ATL_FREE_THREADED`](#_atl_free_threaded)|Define if one or more of your objects use free or neutral threading.|
19
19
|[`_ATL_MODULES`](#_ATL_MODULES)|Allows you to compile ATL projects with [permissive-](../../build/reference/permissive-standards-conformance.md) and use ATL with [C++ modules](../../cpp/modules-cpp.md).|
20
-
|[`_ATL_MULTI_THREADED`](#_atl_multi_threaded)|A symbol that indicates the project will have objects that are marked as Both, Free or Neutral. The macro [`_ATL_FREE_THREADED`](#_atl_free_threaded) should be used instead.|
20
+
|[`_ATL_MULTI_THREADED`](#_atl_multi_threaded)|A symbol that indicates the project has objects marked as Both, Free or Neutral. The macro [`_ATL_FREE_THREADED`](#_atl_free_threaded) should be used instead.|
21
21
|[`_ATL_NO_AUTOMATIC_NAMESPACE`](#_atl_no_automatic_namespace)|A symbol that prevents the default use of namespace as ATL.|
22
22
|[`_ATL_NO_COM_SUPPORT`](#_atl_no_com_support)|A symbol that prevents COM-related code from being compiled with your project.|
23
23
|[`ATL_NO_VTABLE`](#atl_no_vtable)|A symbol that prevents the vtable pointer from being initialized in the class's constructor and destructor.|
@@ -28,7 +28,7 @@ These macros control specific compiler features.
28
28
29
29
A symbol that enables errors in projects converted from previous versions of ATL.
30
30
31
-
```
31
+
```cpp
32
32
#define_ATL_ALL_WARNINGS
33
33
```
34
34
@@ -52,7 +52,7 @@ Before Visual C++ .NET 2002, ATL disabled many warnings and left them disabled s
52
52
53
53
In projects converted from previous versions, these warnings are still disabled by the libraries headers.
54
54
55
-
By adding the following line to the *pch.h* (*stdafx.h* in Visual Studio 2017 and earlier) file before including libraries headers, this behavior can be changed.
55
+
To change this behavior, add the following line to the *`pch.h`* (*`stdafx.h`* in Visual Studio 2017 and earlier) file before including libraries headers.
@@ -64,7 +64,7 @@ New projects have this `#define` set in *pch.h* (*stdafx.h* in Visual Studio 201
64
64
65
65
Define if one or more of your objects use apartment threading.
66
66
67
-
```
67
+
```c
68
68
_ATL_APARTMENT_THREADED
69
69
```
70
70
@@ -76,19 +76,19 @@ Specifies apartment threading. For other options, and a description of the thre
76
76
77
77
Makes certain `CString` constructors explicit, preventing any unintentional conversions.
78
78
79
-
```cpp
79
+
```
80
80
_ATL_CSTRING_EXPLICIT_CONSTRUCTORS
81
81
```
82
82
83
83
### Remarks
84
84
85
-
When this constructor is defined, all CString constructors that take a single parameter are compiled with the explicit keyword, which prevents implicit conversions of input arguments. This means, for example, that when _UNICODE is defined, if you attempt to use a char* string as a CString constructor argument, a compiler error will result. Use this macro in situations where you need to prevent implicit conversions between narrow and wide string types.
85
+
When this constructor is defined, all `CString` constructors that take a single parameter are compiled with the explicit keyword, which prevents implicit conversions of input arguments. This means, for example, that when `_UNICODE` is defined, if you attempt to use a `char*` string as a `CString` constructor argument, a compiler error results. Use this macro in situations where you need to prevent implicit conversions between narrow and wide string types.
86
86
87
87
By using the `_T` macro on all constructor string arguments, you can define `_ATL_CSTRING_EXPLICIT_CONSTRUCTORS` and avoid compile errors regardless of whether `_UNICODE` is defined.
Define this macro in order to force the use of ANSI C++ standard-conforming syntax for pointer to member functions. Using this macro will cause the C4867 compiler error to be generated when non-standard syntax is used to initialize a pointer to a member function.
91
+
Define this macro in order to force the use of ANSI C++ standard-conforming syntax for pointer to member functions. Using this macro causes the C4867 compiler error to be generated when non-standard syntax is used to initialize a pointer to a member function.
92
92
93
93
```cpp
94
94
#define_ATL_ENABLE_PTM_WARNING
@@ -140,7 +140,7 @@ _ATL_MULTI_THREADED
140
140
141
141
### Remarks
142
142
143
-
If this symbol is defined, ATL will pull in code that will correctly synchronize access to global data. New code should use the equivalent macro [`_ATL_FREE_THREADED`](#_atl_free_threaded) instead.
143
+
If this symbol is defined, ATL pulls in code that will correctly synchronize access to global data. New code should use the equivalent macro [`_ATL_FREE_THREADED`](#_atl_free_threaded) instead.
If this symbol isn't defined, including `atlbase.h`will perform`using namespace ATL` by default, which may lead to naming conflicts. To prevent this, define this symbol.
155
+
If this symbol isn't defined, including `atlbase.h`performs`using namespace ATL` by default, which may lead to naming conflicts. To prevent this, define this symbol.
Copy file name to clipboardExpand all lines: docs/build/cmake-presets-vs.md
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,8 @@ On the Visual Studio toolbar, there are dropdowns for the Target Systems, Config
127
127
The dropdown list on the left indicates the active *Target System*. It's the system on which CMake is invoked to configure and build the project. This dropdown list includes your local machine, all SSH connections in Connection Manager by host name, and all Windows Subsystem for Linux (WSL) installations that Visual Studio can find:
128
128
129
129
:::image type="complex" source="./media/target-system-selections.png" alt-text="Screenshot of the Target System dropdown list":::
130
-
The dropdown lists contains several entries including: Local Machine, an ip address 192.168.0.5, WSL: ubuntu2004, WSL: debian, and Manage Connections.:::image-end:::
130
+
The dropdown lists contains several entries including Local Machine, an ip address 192.168.0.5, WSL: ubuntu2004, WSL: debian, and Manage Connections.
131
+
:::image-end:::
131
132
132
133
In the preceding example:
133
134
@@ -483,8 +484,8 @@ The *`CMakePresets.json`* file in [box2d-lite](https://github.com/esweet431/box2
483
484
Learn more about configuring and debugging CMake projects in Visual Studio:
484
485
485
486
> [!div class="nextstepaction"]
486
-
> [CMake Projects in Visual Studio](cmake-projects-in-visual-studio.md)<br/><br/>
0 commit comments