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/preprocessor/comment-c-cpp.md
-6
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,6 @@ The *comment-type* is one of the predefined identifiers, described below, that s
21
21
22
22
Places the name and version number of the compiler in the object file. This comment record is ignored by the linker. If you supply a *comment-string* parameter for this record type, the compiler generates a warning.
23
23
24
-
### exestr
25
-
26
-
Places *comment-string* in the object file. At link time this string is placed in the executable file. The string is not loaded into memory when the executable file is loaded; however, it can be found with a program that finds printable strings in files. One use for this comment-record type is to embed a version number or similar information in an executable file.
27
-
28
-
`exestr` is deprecated and will be removed in a future release; the linker does not process the comment record.
29
-
30
24
### lib
31
25
32
26
Places a library-search record in the object file. This comment type must be accompanied by a *comment-string* parameter containing the name (and possibly the path) of the library that you want the linker to search. The library name follows the default library-search records in the object file; the linker searches for this library just as if you had named it on the command line provided that the library is not specified with [/nodefaultlib](../build/reference/nodefaultlib-ignore-libraries.md). You can place multiple library-search records in the same source file; each record appears in the object file in the same order in which it is encountered in the source file.
The deprecated [/Gm (Enable Minimal Rebuild)](../build/reference/gm-enable-minimal-rebuild.md) feature requires the compiler to create and store C++ class dependency information, which takes disk space. To save disk space, you can use `#pragma component( minrebuild, off )` whenever you don't need to collect dependency information, for instance, in unchanging header files. Insert `#pragma component( minrebuild, on )` after unchanging classes to turn dependency collection back on.
66
66
67
-
### Reduce Type Information
67
+
### Reduce type information
68
68
69
69
The `mintypeinfo` option reduces the debugging information for the region specified. The volume of this information is considerable, impacting .pdb and .obj files. You cannot debug classes and structures in the mintypeinfo region. Use of the mintypeinfo option can be helpful to avoid the following warning:
Copy file name to clipboardExpand all lines: docs/preprocessor/hash-import-directive-cpp.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ One or more [#import attributes](#_predir_the_23import_directive_import_attribut
64
64
65
65
## Remarks
66
66
67
-
## <a name="_predir_the_23import_directive_searchorderforfilename"></a> Search order for filename
67
+
### <a name="_predir_the_23import_directive_searchorderforfilename"></a> Search order for filename
68
68
69
69
*filename* is optionally preceded by a directory specification. The file name must name an existing file. The difference between the two syntax forms is the order in which the preprocessor searches for the type library files when the path is incompletely specified.
70
70
@@ -73,7 +73,7 @@ One or more [#import attributes](#_predir_the_23import_directive_import_attribut
73
73
|Quoted form|Instructs the preprocessor to look for type library files first in the directory of the file that contains the **#import** statement, and then in the directories of whatever files include (`#include`) that file. The preprocessor then searches along the paths shown below.|
74
74
|Angle-bracket form|Instructs the preprocessor to search for type library files along the following paths:<br /><br /> 1. The `PATH` environment variable path list<br />2. The `LIB` environment variable path list<br />3. The path specified by the [/I](../build/reference/i-additional-include-directories.md) compiler option, except it the compiler is searching for a type library that was referenced from another type library with the [no_registry](../preprocessor/no-registry.md) attribute.|
75
75
76
-
## <a name="_predir_the_23import_directive_specifyingthelocalizationidandversionnumber"></a> Specify the localization ID and version number
76
+
### <a name="_predir_the_23import_directive_specifyingthelocalizationidandversionnumber"></a> Specify the localization ID and version number
77
77
78
78
When you specify a progid, you can also specify the localization ID and version number of the progid. For example:
79
79
@@ -91,7 +91,7 @@ If you don't specify a localization ID, a progid is chosen according to the foll
91
91
92
92
- If you don't specify a version number, the most recent version is used.
93
93
94
-
## <a name="_predir_the_23import_directive_header_files_created_by_import"></a> Header files created by import
94
+
### <a name="_predir_the_23import_directive_header_files_created_by_import"></a> Header files created by import
95
95
96
96
**#import** creates two header files that reconstruct the type library contents in C++ source code. The primary header file is similar to the one produced by the Microsoft Interface Definition Language (MIDL) compiler, but with additional compiler-generated code and data. The [primary header file](#_predir_the_primary_type_library_header_file) has the same base name as the type library, plus a .TLH extension. The secondary header file has the same base name as the type library, with a .TLI extension. It contains the implementations for compiler-generated member functions, and is included (`#include`) in the primary header file.
97
97
@@ -163,7 +163,7 @@ The actual filename in the **#import** comment is the full path of the cross-ref
163
163
164
164
To resolve dependency errors, determine which of the dependency comments aren't otherwise provided for by system headers, and then provide an **#import** directive at some point before the **#import** directive of the dependent type library.
**#import** can optionally include one or more attributes. These attributes tell the compiler to modify the contents of the type-library headers. A backslash (**\\**) symbol can be used to include additional lines in a single **#import** statement. For example:
0 commit comments