Skip to content

Commit 983d8cc

Browse files
Taojunshen3836425+corob-msft@users.noreply.github.comopbld16TylerMSFTTylerMSFT
authored
3/14/2022 AM Publish (MicrosoftDocs#4177)
* Change __STDC__ documentation for 17.2 * Twhitney updateui (#4082) * update ui steps * simplify * fix formatting * try a note * formatting * bridge the note * edits * edits * acrolinx * Update docs/build/walkthrough-header-units.md Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> * Fix link to CreateProcess function * Update exception-handling-x64.md * US1907300 - add md code escapes to code elements - PR9 * Address cpp-docs 3691, 3688, 3684, 3664 (MicrosoftDocs#4085) * [17.2p1] Add /scanDependencies option to docs (MicrosoftDocs#4059) * Add /scanDependencies option to docs * Acrolinx pass * Updates per review by Cameron * Consistency of command option formatting * Add IDE instructions * Tweaks per comments. * US1907300 - add md code escapes to code elements - PR7 (MicrosoftDocs#4076) * US1907300 - add md code escapes to code elements - PR7 * US1907300 - add md code escapes to code elements - PR7 * updates after review * updates after review * updates after review * updates after review * updates after review * US1907300 - add md code escapes to code elements - PR8 (MicrosoftDocs#4080) * US1907300 - add md code escapes to code elements - PR8 * updates after review * updates after review * updates after review * fix blocking issue * Address DD 1462641 (MicrosoftDocs#4086) * Content for 17.1 release * US1907300 - add md code escapes to code elements - PR9 * fix formatting issue * US1907300 - add md code escapes to code elements - PR10 * updates after review * updates after review * updates after review * updates after review * updates after review * Address cpp-docs 3694, 3696 * Update what-s-new-for-visual-cpp-in-visual-studio.md fix typo * add links (#4094) Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * Address cpp-docs 3694, 3696 (#4091) * Updates for cpp-docs 3700 3703 * Add op= to example * Add 3448,3482,3483,3540,3683 updates * Use existing media for CMake Targets View * US1907300 - add md code escapes to code elements - PR11 (MicrosoftDocs#4095) * US1907300 - add md code escapes to code elements - PR11 * updates after review * fix table syntax * trying to fix table rendering error * trying to fix table rendering error * trying to fix table rendering error * update after review * Additional clean-up for DD 1462641 * Set ms.topic: faq where YamlMime:FAQ (MicrosoftDocs#4099) * Release notes and conformance for 17.1 * typo fix * Use ConcRT instead of ConCRT ConcRT is a more correct abbreviation for Concurrency Runtime Library. ConcRT also appears in the comment in the beginning of concrt.h. * cpp-docs 3590 in progress * US1907300 - add md code escapes to code elements - PR12 (MicrosoftDocs#4103) * US1907300 - add md code escapes to code elements - PR12 * changes afteer review * changes afteer review * changes afteer review * changes afteer review * Bulk fix: \&MicrosoftDocs#124; entity removal 1/n * Bulk fix: pipe entity removal 2 of n * clarify operators * Bulk fix: Pipe entity 3 of n * Fix grammar * Bulk fix pipe entities 4 of n * Bulk fix * Undo change * Fix pipe entities 5 of n * Fix more pipe entity issues * US1907300 - add md code escapes to code elements - PR13 (MicrosoftDocs#4110) * US1907300 - add md code escapes to code elements - PR13 * changes afteer review * changes after review * Add missing Properties and F1 targets * Tweak dates, Acrolinx * Fix links * US1907300 - add md code escapes to code elements - PR14 * changes after review * US1907300 - add md code escapes to code elements - PR15 * US1907300 - add md code escapes to code elements - PR15 * Add C7553, C5240, diagnostics fixes * Add C5054, C5055, C5056 warnings * fix link * updates after review * Fix a collection of cpp-docs issues * Add C7553, C5240 to TOC * Add C5054, C5055, C5056 to TOC * Tweaks to cpp-docs-220222 * changes after review * Document lowercase, uppercase. Add specific version information * US1907300 - add md code escapes to code elements - PR16 (#4127) * US1907300 - add md code escapes to code elements - PR16 * US1907300 - add md code escapes to code elements - PR16 * changes after review * Add missing documentation to 3 new enum related checks. * Add version inforation into table (#4132) * Fix typo that listed for_each instead of find_if Fixed an example description where the description did not match the example * Add that "g" has been deprecated * US1907300 - add md code escapes to code elements - PR17 (MicrosoftDocs#4130) * US1907300 - add md code escapes to code elements - PR17 * changes after review * changes after review * changes after review * changes after review * changes after review * Change P1689R3 to P1689R4 per Gaby * US1907300 - add md code escapes to code elements - PR18 (MicrosoftDocs#4135) * US1907300 - add md code escapes to code elements - PR18 * changes after review * Update to Docs style. * Fix typo. * Fix missing ending underscore in `_Analysis_assume_` * Fix link. * TC1652913 __declspec(empty_bases) docs * Missed one reference. * Fix typo in _CrtSetReportHook2 parameter name * Add info for TC1587815 JMC in code coverage * Fix typo * US1907300 - add md code escapes to code elements - PR19 (#4141) * US1907300 - add md code escapes to code elements - PR19 * changes after review * Use main branch for public repository * Address bug TS1430759 * update headings * Fix a bunch of "See x for more information" * Bulk Fix 2 of n "see x for more information" * Acrolinx some files before a bulk fix. * Fix remaining "See x" issues in build (#4153) * Fix Acrolinx and grammar issues * Fix typo. * correct previous updates to null * US1907300 - add md code escapes to code elements - PR20 (#4145) * US1907300 - add md code escapes to code elements - PR20 * changes after review * changes after review * changes after review * US1907300 - add md code escapes to code elements - PR21 (#4158) * US1907300 - add md code escapes to code elements - PR21 * changes after review * Update 1 for VS22 (#4147) * Update 1 for VS22 * Disambiguate example, update grammar * Update after review * Update after review * update after review * update after review * update after review * update after review * update after review Co-authored-by: Colin Robertson <corob@microsoft.com> * restored link to videos previously on channel 9 but now on docs.micro… (#4159) * restored link to videos previously on channel 9 but now on docs.microsoft.com shows page * acrolinx * make link relative Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * US1907300 - add md code escapes to code elements - PR22 * changes after review * changes after review * Missing 9 for hexadecimal-digit * Missing " in string-literal * Updating for VS22 (MicrosoftDocs#4139) * Updating for VS22 * Update 2 for VS22 * Update 2 VS22 * Update 2 VS22 * Update 2 VS22 * Update after tech review * Update after review * Update date * US1907300 - add md code escapes to code elements - PR23 (MicrosoftDocs#4165) * US1907300 - add md code escapes to code elements - PR23 * fix table error * fix table error * changes after review * Removed the extra semicolon. * add link to different toolset environment list (MicrosoftDocs#4171) * add link to toolset environment list Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> * Fix value constraint for #line * Update for VS2022 (MicrosoftDocs#4162) * Update for VS2022 * Update after review * Update after review * Update after review * Update for VS 2022 * Update for Visual studio 2022 * Update after review Co-authored-by: 3836425+corob-msft@users.noreply.github.com <corob@microsoft.com> Co-authored-by: opbld16 <opbld16@microsoft.com> Co-authored-by: Tyler Whitney <TylerMSFT@users.noreply.github.com> Co-authored-by: TylerMSFT <Tyler.Whitney@microsoft.com> Co-authored-by: Shannon Leavitt <V-SHLEAV@microsoft.com> Co-authored-by: ishchukin <78567572+ishchukin@users.noreply.github.com> Co-authored-by: p4yl0ad <57832389+p4yl0ad@users.noreply.github.com> Co-authored-by: opbld17 <opbld17@microsoft.com> Co-authored-by: Craig Casey <17149610+craigcaseyMSFT@users.noreply.github.com> Co-authored-by: PRMerger9 <prmrgr9@microsoft.com> Co-authored-by: opbld15 <opbld15@microsoft.com> Co-authored-by: Dennis Rea <v-denrea@microsoft.com> Co-authored-by: jason <drvoss@gmail.com> Co-authored-by: Linda Spiller <93278958+LJSpiller@users.noreply.github.com> Co-authored-by: Alex Buck <abuck@microsoft.com> Co-authored-by: myd7349 <myd7349@gmail.com> Co-authored-by: Kristine Toliver <ktoliver@users.noreply.github.com> Co-authored-by: PRMerger15 <prmrgr15@microsoft.com> Co-authored-by: PRMerger16 <prmrgr16@microsoft.com> Co-authored-by: PRMerger Service account 2 <PRMerger-2@users.noreply.github.com> Co-authored-by: PRMerger12 <prmrgr12@microsoft.com> Co-authored-by: Tamara K <93546702+tamarakhader@users.noreply.github.com> Co-authored-by: PRMerger4 <prmergr4@microsoft.com> Co-authored-by: Daniel Paoliello <danpao@microsoft.com> Co-authored-by: Laura Brenner <90344170+laurabren@users.noreply.github.com> Co-authored-by: Gabor Horvath <gahorvat@microsoft.com> Co-authored-by: Austin C. Minor <austin.chase.m@gmail.com> Co-authored-by: Edward Breeveld <42862235+EddieBreeveld@users.noreply.github.com> Co-authored-by: PRMerger10 <prmrgr10@microsoft.com> Co-authored-by: Miya Natsuhara <46756417+mnatsuhara@users.noreply.github.com> Co-authored-by: PRMerger14 <prmrgr14@microsoft.com> Co-authored-by: adr26 <32688592+adr26@users.noreply.github.com> Co-authored-by: Haig MacGregor <92189915+hmacgregor1@users.noreply.github.com> Co-authored-by: v-pegao <v-pegao@users.noreply.github.com> Co-authored-by: PRMerger18 <prmrgr18@microsoft.com> Co-authored-by: PRMerger8 <prmrgr8@microsoft.com> Co-authored-by: Anna Huff <92125952+AnnaMHuff@users.noreply.github.com> Co-authored-by: Rachana Satao <83084319+rachana-satao@users.noreply.github.com> Co-authored-by: Johnson <skyzs2001@vip.qq.com> Co-authored-by: shrek1402 <44646716+shrek1402@users.noreply.github.com> Co-authored-by: SaltfishAmi <ami@saltfish.moe>
1 parent dea8cf2 commit 983d8cc

3 files changed

Lines changed: 54 additions & 17 deletions

File tree

‎docs/mfc/reference/add-class-from-typelib-wizard.md‎

Lines changed: 53 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,52 @@
11
---
22
description: "Learn more about: Add Class from Typelib Wizard"
33
title: "Add Class from Typelib Wizard"
4-
ms.date: "05/09/2019"
4+
ms.date: "03/10/2022"
55
helpviewer_keywords: ["COM interfaces, adding classes"]
66
ms.assetid: 96152afd-9374-4649-a6ab-b0fa2a5592a3
7+
ms.custom: devdivchpfy22
78
---
89
# Add Class from Typelib Wizard
910

1011
::: moniker range=">=msvc-160"
1112

12-
This wizard is not available in Visual Studio 2019 and later.
13+
The wizard creates a class for each interface you add from the selected type library.
14+
15+
:::image type="content" source="../reference/media/add-class-from-typelib-wizard.png" alt-text="Screenshot of Add Class From Typelib Wizard.":::
16+
17+
- **Implement interface from**
18+
19+
Specifies the location of the type library.
20+
21+
|Option|Description|
22+
|------------|-----------------|
23+
|**Registry**|Registered type libraries are listed in **Available type libraries**.|
24+
|**File**|Provide the file location in **Location** for type libraries that aren't registered with the system.|
25+
26+
- **Available type libraries**
27+
28+
Lists the type libraries registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
29+
30+
- **Location**
31+
32+
Specifies the location of the type library. Under **Implement interface from**, select **File** to provide the type library file location. To browse to the location of the file, select the ellipsis button.
33+
34+
- **Available Interfaces**
35+
36+
Lists the interfaces in the type library selected in the **Available type libraries** list.
37+
38+
|Transfer button|Description|
39+
|---------------------|-----------------|
40+
|**>**|Adds the selected interface in the **Interfaces** list. Unavailable if no interface is selected.|
41+
|**>>**|Adds all the interfaces for the type library selected in the **Available type libraries** list.|
42+
|**\<**|Removes the selected class in the **Implement interfaces** list. Unavailable if no class is selected.|
43+
|**\<\<**|Removes all the classes in the **Implement interfaces** list. Unavailable if the **Implement interfaces** list is empty.|
44+
45+
- **Implement interfaces**
46+
47+
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. Click the box to select a class, and then use the up or down keys to scroll through the list. The wizard generates classes when you select **OK**. You can select only one class at a time in this box.
48+
49+
To remove a class, select it in this list and then select **<**. Select **<<** to remove all classes in the **Implement interfaces** box.
1350

1451
::: moniker-end
1552

@@ -23,43 +60,43 @@ Use this wizard to add an MFC class from an available type library. The wizard c
2360

2461
|Option|Description|
2562
|------------|-----------------|
26-
|**Registry**|The type library is registered in the system. Registered type libraries are listed in **Available type libraries**.|
27-
|**File**|The type library is not necessarily registered in the system but is contained in a file. You must provide the file location in **Location**.|
63+
|**Registry**|Registered type libraries are listed in **Available type libraries**.|
64+
|**File**|Provide the file location in **Location** for type libraries that aren't registered with the system.|
2865

2966
- **Available type libraries**
3067

31-
Lists the type libraries currently registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
68+
Lists the type libraries registered in the system. Select a type library from this list to display its interfaces in the **Interfaces** list.
3269

3370
- **Location**
3471

35-
Specifies the location of the type library. If you click **File** under **Add Class From**, you can provide the location of the file containing the type library. To browse to the location of the file, click the ellipsis button.
72+
Specifies the location of the type library. If you select **File** under **Add Class From**, you can provide the location of the file containing the type library. To browse to the location of the file, select the ellipsis button.
3673

3774
- **Interfaces**
3875

39-
Lists the interfaces in the type library currently selected in the **Available type libraries** list.
76+
Lists the interfaces in the type library selected in the **Available type libraries** list.
4077

4178
|Transfer button|Description|
4279
|---------------------|-----------------|
43-
|**>**|Adds the interface currently selected in the **Interfaces** list. Dimmed if no interface is selected.|
44-
|**>>**|Adds all the interfaces in the type library currently selected in the **Available type libraries** list.|
45-
|**\<**|Removes the class currently selected in the **Generated classes** list. Dimmed if no class is currently selected in the **Generated classes** list.|
46-
|**\<\<**|Removes all the classes in the **Generated classes** list. Dimmed if the **Generated classes** list is empty.|
80+
|**>**|Adds the interface selected in the **Interfaces** list. Unavailable if no interface is selected.|
81+
|**>>**|Adds all the interfaces in the type library selected in the **Available type libraries** list.|
82+
|**\<**|Removes the class selected in the **Generated classes** list. Unavailable if no class is selected in the **Generated classes** list.|
83+
|**\<\<**|Removes all the classes in the **Generated classes** list. Unavailable if the **Generated classes** list is empty.|
4784

4885
- **Generated classes**
4986

50-
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. You can click this box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the **Class** box and file name in the **File** box that the wizard generates when you click **Finish**. You can select only one class at a time in this box.
87+
Specifies the class names to be generated from the interfaces added using the **>** or **>>** button. Click the box to select a class, and then use the up or down keys to scroll through the list, viewing each class name in the **Class** box and file name in the **File** box that the wizard generates when you select **Finish**. You can select only one class at a time in this box.
5188

52-
You can remove a class by selecting it in this list and clicking **<**. You do not need to select a class in the Generated classes box to remove all classes; by clicking **<<**, you remove all classes in the **Generated classes** box.
89+
To remove a class, select it in this list and then select **<**. Select **<<** to remove all classes in the **Generated classes** box.
5390

5491
- **Class**
5592

56-
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you click **Finish**. You can edit the name in the **Class** box.
93+
Specifies the name of the class selected in the **Generated classes** box that the wizard adds when you select **Finish**. You can edit the name in the **Class** box.
5794

5895
- **File**
5996

60-
Sets the name of the header file for the new class. By default, this name is based on the name you provide in **Generated classes**. Click the ellipsis button to save the file name to the location of your choice, or to append the class declaration to an existing file. If you choose an existing file, the wizard will not save it to the selected location until you click **Finish** in the wizard.
97+
Sets the name of the header file for the new class. By default, this name is based on the name you provide in **Generated classes**. Select the ellipsis button to save the file name to the location of your choice, or to append the class declaration to an existing file. If you choose an existing file, the wizard won't save it to the selected location until you select **Finish** in the wizard.
6198

62-
The wizard does not overwrite a file. If you select the name of an existing file, when you click **Finish**, the wizard prompts you to indicate whether the class declaration should be appended to the contents of the file. Click **Yes** to append the file; click **No** to return to the wizard and specify another file name.
99+
The wizard doesn't overwrite a file. If you select the name of an existing file, when you select **Finish**, the wizard prompts you to indicate whether the class declaration should be appended to the contents of the file. Select **Yes** to append the file; select **No** to return to the wizard and specify another file name.
63100

64101
::: moniker-end
65102

24 KB
Loading

‎docs/preprocessor/hash-line-directive-c-cpp.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The **#line** directive tells the preprocessor to set the compiler's reported va
1818

1919
The compiler uses the line number and optional filename to refer to errors that it finds during compilation. The line number usually refers to the current input line, and the filename refers to the current input file. The line number is incremented after each line is processed.
2020

21-
The *digit-sequence* value can be any integer constant. Macro replacement can be used on the preprocessing tokens, but the result must evaluate to the correct syntax. The *filename* can be any combination of characters and must be enclosed in double quotation marks (`" "`). If *filename* is omitted, the previous filename remains unchanged.
21+
The *digit-sequence* value can be any integer constant within the range from 0 to 2147483647, inclusive. Macro replacement can be used on the preprocessing tokens, but the result must evaluate to the correct syntax. The *filename* can be any combination of characters and must be enclosed in double quotation marks (`" "`). If *filename* is omitted, the previous filename remains unchanged.
2222

2323
You can alter the source line number and filename by writing a **`#line`** directive. The **`#line`** directive sets the value for the line that immediately follows the directive in the source file. The translator uses the line number and filename to determine the values of the predefined macros `__FILE__` and `__LINE__`. You can use these macros to insert self-descriptive error messages into the program text. For more information on these predefined macros, see [Predefined macros](../preprocessor/predefined-macros.md).
2424

0 commit comments

Comments
 (0)