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/atl-mfc-shared-classes.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
@@ -17,7 +17,7 @@ ms.author: "mblome"
17
17
manager: "ghogen"
18
18
---
19
19
# ATL/MFC Shared Classes
20
-
Beginning with Visual C++ .NET 2002, several existing MFC utility classes were rewritten or revised to reduce their dependencies on other MFC classes. These utility classes can now be used in any native C++ project. This section only includes classes that were previously available to MFC projects and have now been shared, plus a few new classes related to the changes in `CString`. It does not include the ATL classes, which can be used in any native C++ project type by inclusion of the appropriate header.
20
+
These utility classes can be used in any native C++ project without requiring any MFC DLL.
21
21
22
22
## In This Section
23
23
[Classes Shared Between MFC and ATL](../atl-mfc-shared/reference/classes-shared-by-mfc-and-atl.md)
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/cstringt-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
@@ -140,7 +140,7 @@ public CSimpleStringT<BaseType,
140
140
`CString`, `CStringA`, and `CStringW` are exported from the MFC DLL (MFC90.DLL), never from user DLLs. This is done to prevent `CStringT` from being multiply defined.
141
141
142
142
> [!NOTE]
143
-
> If you encountered linker errors when exporting a `CString`-derived class from an MFC extension DLL in Visual C++ .NET 2002 and have applied the workaround as described in the Knowledge Base article, "Linking Errors When You Import CString-Derived Classes" (Q309801), you should remove the workaround code, because this has been fixed in Visual C++ .NET 2003. You can find Knowledge Base articles at [http://support.microsoft.com/support](http://support.microsoft.com/support).
143
+
> If your code contains the workaround for linker errors that is described in [Linking Errors When You Import CString-Derived Classes" (Q309801)](https://support.microsoft.com/help/309801/you-may-receive-an-lnk2019-error-message-when-you-build-a-visual-c-200), you should remove that code. It is no longer needed.
144
144
145
145
The following string types are available within MFC-based applications:
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.
130
-
131
-
In Visual C++ versions 6.0 and earlier, `time` was a value of `time_t`. Visual C++ .NET and later converts a `time_t` parameter to **__time64_t**.
Copy file name to clipboardExpand all lines: docs/atl-mfc-shared/reference/ctimespan-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
@@ -114,7 +114,7 @@ CTimeSpan(
114
114
A `CTimeSpan` object that already exists.
115
115
116
116
`time`
117
-
A **__time64_t** time value, which is the number of seconds in the time span. In Visual C++ versions 6.0 and earlier, `time` was a value of `time_t`. Visual C++ .NET or later silently converts a `time_t` parameter to **__time64_t**.
117
+
A **__time64_t** time value, which is the number of seconds in the time span.
Copy file name to clipboardExpand all lines: docs/atl/reference/compiler-options-macros.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
@@ -64,7 +64,7 @@ These macros control specific compiler features.
64
64
65
65
If this `#define` is added, the ATL headers are careful to preserve the state of these warnings so that they are not disabled globally (or if the user explicitly disables individual warnings, not to enable them).
66
66
67
-
New projects generated with Visual C++ .NET 2002 will have this `#define` set in stdafx.h by default.
67
+
New projects have this `#define` set in stdafx.h by default.
@@ -30,20 +25,7 @@ This topic compares the default ATL project configurations in Visual C++ .NET wi
30
25
31
26
**Character set**, **Use of ATL** and can all be changed in the **Project Settings** dialog under the **General** tab. You can also add your own configurations using the Configuration Manager. For details, see [Build Configurations](/visualstudio/ide/understanding-build-configurations).
32
27
33
-
## Version 6.0 Default Configurations
34
-
In Visual C++ version 6.0, the ATL COM AppWizard (now called the ATL Project Wizard) created six project configurations by default. The configurations were variations on Release, Debug, Unicode, and use of CRT and ATL settings. All these configurations can be duplicated in Visual C++ .NET using the Configuration Manager, if so desired.
Copy file name to clipboardExpand all lines: docs/build/reference/assemblydebug-add-debuggableattribute.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
@@ -42,7 +42,7 @@ manager: "ghogen"
42
42
```
43
43
44
44
## Remarks
45
-
In Visual C++ .NET 2003 and later, it is necessary to explicitly specify that a managed image be debuggable. Using [/Zi](../../build/reference/z7-zi-zi-debug-information-format.md) alone is not sufficient.
45
+
It is necessary to explicitly specify that a managed image be debuggable. Using [/Zi](../../build/reference/z7-zi-zi-debug-information-format.md) alone is not sufficient.
46
46
47
47
Other linker options that affect assembly generation are:
Copy file name to clipboardExpand all lines: docs/build/reference/cl-environment-variables.md
+41-51Lines changed: 41 additions & 51 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,57 +18,47 @@ manager: "ghogen"
18
18
---
19
19
# CL Environment Variables
20
20
21
-
The CL tool uses the following environment variables:
22
-
23
-
- CL and \_CL\_, if defined. The CL tool inserts the options and arguments defined in the CL environment variable at the beginning of the command line arguments, and adds the options and arguments defined in \_CL\_ to the end of the command line arguments, before processing.
24
-
25
-
- INCLUDE, which must point to the \include subdirectory of your Visual C++ installation.
26
-
27
-
- LIBPATH, which specifies directories to search for metadata files referenced by a `#using` directive. See [#using](../../preprocessor/hash-using-directive-cpp.md) for more information on LIBPATH.
28
-
29
-
You can set the CL or \_CL\_ environment variables using the following syntax:
30
-
31
-
```
32
-
SET CL=[ [option] ... [file] ...] [/link link-opt ...]
33
-
SET _CL_=[ [option] ... [file] ...] [/link link-opt ...]
34
-
```
35
-
36
-
For details on the arguments to the CL and \_CL\_ environment variables, see [Compiler Command-Line Syntax](../../build/reference/compiler-command-line-syntax.md).
37
-
38
-
You can use these environment variables to define the files and options you use most often and use the command line to define specific files and options for specific purposes. The CL and \_CL\_ environment variables are limited to 1024 characters (the command-line input limit).
39
-
40
-
You cannot use the /D option to define a symbol that uses an equal sign (=). You can substitute the number sign (#) for an equal sign. In this way, you can use the CL or \_CL\_ environment variables to define preprocessor constants with explicit values; for example, `/DDEBUG#1` to define `DEBUG=1`.
41
-
42
-
For related information, see [Set Environment Variables](../../build/setting-the-path-and-environment-variables-for-command-line-builds.md).
43
-
44
-
## Examples
45
-
46
-
The following is an example of setting the CL environment variable:
47
-
48
-
```
49
-
SET CL=/Zp2 /Ox /I\INCLUDE\MYINCLS \LIB\BINMODE.OBJ
50
-
```
51
-
52
-
When this environment variable is set, if you enter `CL INPUT.C` at the command line, this is the effective command:
The following example causes a plain CL command to compile the source files FILE1.c and FILE2.c, and then link the object files FILE1.obj, FILE2.obj, and FILE3.obj:
59
-
60
-
```
61
-
SET CL=FILE1.C FILE2.C
62
-
SET _CL_=FILE3.OBJ
63
-
CL
64
-
```
65
-
66
-
This has the same effect as the following command line:
67
-
68
-
```
69
-
CL FILE1.C FILE2.C FILE3.OBJ
70
-
```
71
-
21
+
The CL tool uses the following environment variables:
22
+
23
+
- CL and \_CL\_, if defined. The CL tool prepends the options and arguments defined in the CL environment variable to the command line arguments, and appends the options and arguments defined in \_CL\_, before processing.
24
+
25
+
- INCLUDE, which must point to the \include subdirectory of your Visual C++ installation.
26
+
27
+
- LIBPATH, which specifies directories to search for metadata files referenced with [#using](../../preprocessor/hash-using-directive-cpp.md). See `#using` for more information on LIBPATH.
28
+
29
+
You can set the CL or \_CL\_ environment variable using the following syntax:
30
+
31
+
> SET CL=[[*option*] ... [*file*] ...][/link *link-opt* ...]
32
+
> SET \_CL\_=[[*option*] ... [*file*] ...][/link *link-opt* ...]
33
+
34
+
For details on the arguments to the CL and \_CL\_ environment variables, see [Compiler Command-Line Syntax](../../build/reference/compiler-command-line-syntax.md).
35
+
36
+
You can use these environment variables to define the files and options you use most often and use the command line to define specific files and options for specific purposes. The CL and \_CL\_ environment variables are limited to 1024 characters (the command-line input limit).
37
+
38
+
You cannot use the /D option to define a symbol that uses an equal sign (=). You can substitute the number sign (#) for an equal sign. In this way, you can use the CL or \_CL\_ environment variables to define preprocessor constants with explicit values—for example, `/DDEBUG#1` to define `DEBUG=1`.
39
+
40
+
For related information, see [Set Environment Variables](../../build/setting-the-path-and-environment-variables-for-command-line-builds.md).
41
+
42
+
## Examples
43
+
44
+
The following is an example of setting the CL environment variable:
45
+
46
+
> SET CL=/Zp2 /Ox /I\INCLUDE\MYINCLS \LIB\BINMODE.OBJ
47
+
48
+
When this environment variable is set, if you enter `CL INPUT.C` at the command line, this is the effective command:
The following example causes a plain CL command to compile the source files FILE1.c and FILE2.c, and then link the object files FILE1.obj, FILE2.obj, and FILE3.obj:
53
+
54
+
> SET CL=FILE1.C FILE2.C
55
+
> SET \_CL\_=FILE3.OBJ
56
+
> CL
57
+
58
+
This has the same effect as the following command line:
0 commit comments