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/atl-utilities-reference.md
+3-5Lines changed: 3 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,7 @@
1
1
---
2
-
description: "Learn more about: ATL utilities reference"
3
2
title: "ATL utilities reference"
3
+
description: "Learn more about: ATL utilities reference"
4
4
ms.date: "11/04/2016"
5
-
ms.assetid: dd8a2888-34f4-461e-9bf4-834218f9b95b
6
5
---
7
6
# ATL utilities reference
8
7
@@ -47,8 +46,7 @@ ATL provides code for manipulating paths and URLs in the form of [CPathT](../atl
47
46
|[AtlIsUnsafeUrlChar](../atl/reference/atl-http-utility-functions.md#atlisunsafeurlchar)| Call this function to find out whether a character is safe for use in a URL. |
48
47
|[AtlUnescapeUrl](../atl/reference/atl-http-utility-functions.md#atlunescapeurl)| Call this function to convert escaped characters back to their original values. |
49
48
|[SystemTimeToHttpDate](../atl/reference/atl-http-utility-functions.md#systemtimetohttpdate)| Call this function to convert a system time to a string in a format suitable for using in HTTP headers. |
50
-
|[ATLPath::AddBackslash](../atl/reference/atl-path-functions.md#addbackslash)| This function is an overloaded wrapper for [PathAddBackslash](/windows/desktop/api/shlwapi/nf-shlwapi-pathaddbackslasha |
51
-
| ). |
49
+
|[ATLPath::AddBackslash](../atl/reference/atl-path-functions.md#addbackslash)| This function is an overloaded wrapper for [PathAddBackslash](/windows/win32/api/shlwapi/nf-shlwapi-pathaddbackslasha). |
52
50
|[ATLPath::AddExtension](../atl/reference/atl-path-functions.md#addextension)| This function is an overloaded wrapper for [PathAddExtension](/windows/win32/api/shlwapi/nf-shlwapi-pathaddextensionw). |
53
51
|[ATLPath::Append](../atl/reference/atl-path-functions.md#append)| This function is an overloaded wrapper for [PathAppend](/windows/win32/api/shlwapi/nf-shlwapi-pathappendw). |
54
52
|[ATLPath::BuildRoot](../atl/reference/atl-path-functions.md#buildroot)| This function is an overloaded wrapper for [PathBuildRoot](/windows/win32/api/shlwapi/nf-shlwapi-pathbuildrootw). |
@@ -87,5 +85,5 @@ ATL provides code for manipulating paths and URLs in the form of [CPathT](../atl
`CComMultiThreadModel` provides thread-safe methods for incrementing and decrementing the value of a variable.
12
11
13
12
## Syntax
14
13
15
-
```
14
+
```cpp
16
15
classCComMultiThreadModel
17
16
```
18
17
@@ -35,7 +34,7 @@ class CComMultiThreadModel
35
34
36
35
## Remarks
37
36
38
-
Typically, you use `CComMultiThreadModel` through one of two **`typedef`** names, either [CComObjectThreadModel](atl-typedefs.md#ccomobjectthreadmodel or [CComGlobalsThreadModel](atl-typedefs.md#ccomglobalsthreadmodel. The class referenced by each **`typedef`** depends on the threading model used, as shown in the following table:
37
+
Typically, you use `CComMultiThreadModel` through one of two **`typedef`** names, either [CComObjectThreadModel](atl-typedefs.md#ccomobjectthreadmodel) or [CComGlobalsThreadModel](atl-typedefs.md#ccomglobalsthreadmodel). The class referenced by each **`typedef`** depends on the threading model used, as shown in the following table:
When using `CComMultiThreadModel`, the **`typedef`** name `AutoCriticalSection` references class [CComAutoCriticalSection](ccomautocriticalsection-class.md), which provides methods for obtaining and releasing ownership of a critical section object.
@@ -120,7 +119,7 @@ The following tables show the results of the `InternalAddRef` and `Lock` methods
120
119
121
120
When using `CComMultiThreadModel`, the **`typedef`** name `CriticalSection` references class [CComCriticalSection](ccomcriticalsection-class.md), which provides methods for obtaining and releasing ownership of a critical section object.
122
121
123
-
```
122
+
```cpp
124
123
typedef CComCriticalSection CriticalSection;
125
124
```
126
125
@@ -144,13 +143,13 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
144
143
145
144
This static function calls the Win32 function [InterlockedDecrement](/windows/win32/api/winnt/nf-winnt-interlockeddecrement), which decrements the value of the variable pointed to by *p*.
146
145
147
-
```
146
+
```cpp
148
147
static ULONG WINAPI Decrement(LPLONG p) throw ();
149
148
```
150
149
151
150
### Parameters
152
151
153
-
*p*<br/>
152
+
*p*\
154
153
[in] Pointer to the variable to be decremented.
155
154
156
155
### Return Value
@@ -165,13 +164,13 @@ If the result of the decrement is 0, then `Decrement` returns 0. If the result o
165
164
166
165
This static function calls the Win32 function [InterlockedIncrement](/windows/win32/api/winnt/nf-winnt-interlockedincrement), which increments the value of the variable pointed to by *p*.
167
166
168
-
```
167
+
```cpp
169
168
static ULONG WINAPI Increment(LPLONG p) throw ();
170
169
```
171
170
172
171
### Parameters
173
172
174
-
*p*<br/>
173
+
*p*\
175
174
[in] Pointer to the variable to be incremented.
176
175
177
176
### Return Value
@@ -186,7 +185,7 @@ If the result of the increment is 0, then `Increment` returns 0. If the result o
186
185
187
186
When using `CComMultiThreadModel`, the **`typedef`** name `ThreadModelNoCS` references class [CComMultiThreadModelNoCS](ccommultithreadmodelnocs-class.md).
188
187
189
-
```
188
+
```cpp
190
189
typedef CComMultiThreadModelNoCS ThreadModelNoCS;
191
190
```
192
191
@@ -208,7 +207,7 @@ See [CComMultiThreadModel::AutoCriticalSection](#autocriticalsection).
> To use the MFC database classes, you must have the appropriate ODBC driver for your data source. The lastest Microsoft ODBC driver for SQL Server is [Microsoft ODBC Driver 18 for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server. Most database vendors provide an ODBC driver for Windows.
10
+
> To use the MFC database classes, you must have the appropriate ODBC driver for your data source. The lastest Microsoft ODBC driver for SQL Server is [Microsoft ODBC Driver 18 for SQL Server](/sql/connect/odbc/download-odbc-driver-for-sql-server). Most database vendors provide an ODBC driver for Windows.
12
11
13
12
This topic introduces the main concepts of the Microsoft Foundation Classes (MFC) library's ODBC-based database classes and provides an overview of how the classes work together. For more information about ODBC and MFC, see the following topics:
0 commit comments