Skip to content

Commit db209bc

Browse files
authored
Merge pull request MicrosoftDocs#2009 from mikeblome/mb-mfc-wizards
Update database topics for removal of wizards in VS2019
2 parents 13b665e + 66e710b commit db209bc

17 files changed

Lines changed: 87 additions & 30 deletions

docs/atl/reference/adding-an-atl-active-server-page-component.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
title: "Adding an ATL Active Server Page Component"
3-
ms.date: "11/04/2016"
4-
helpviewer_keywords: ["ASP components, adding", "ASP components", "ATL, ASP components", "ATL ASP components"]
3+
ms.date: "05/09/2019"
54
ms.assetid: 7be2204c-6e58-4099-8892-001b848c8987
65
---
76
# Adding an ATL Active Server Page Component
87

8+
9+
::: moniker range="vs-2019"
10+
11+
The ATL Active Server Pages component wizard is not available in Visual Studio 2019 and later.
12+
13+
::: moniker-end
14+
15+
::: moniker range="vs-2017"
16+
917
To add an Active Template Library (ATL) object to your project, your project must have been created as an ATL COM application or as an MFC application that contains ATL support. You can use the [ATL Project Wizard](../../atl/reference/atl-project-wizard.md) to create an ATL application, you can select **Add ATL Support to MFC** from the [Add Class Dialog Box](../../ide/add-class-dialog-box.md) dialog box, or you can [add an ATL object to your MFC application](../../mfc/reference/adding-atl-support-to-your-mfc-project.md) to implement ATL support for an MFC application.
1018

1119
Active Server Pages components are part of the Internet Information Services architecture, which provides the following advanced Web development features:
@@ -24,6 +32,8 @@ Active Server Pages components are part of the Internet Information Services arc
2432

2533
1. In the [Add Class](../../ide/add-class-dialog-box.md) dialog box, in the **Templates** pane, click **ATL Active Server Page Component**, and then click **Open** to display the [ATL Active Server Page Component Wizard](../../atl/reference/atl-active-server-page-component-wizard.md).
2634

35+
::: moniker-end
36+
2737
## See also
2838

2939
[Adding a Class](../../ide/adding-a-class-visual-cpp.md)<br/>

docs/atl/reference/adding-an-atl-com-plus-1-0-component.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
title: "Adding an ATL COM+ 1.0 Component"
3-
ms.date: "11/04/2016"
4-
helpviewer_keywords: ["ATL COM+ 1.0", "ATL projects, adding components", "components [C++], adding ATL COM+ 1.0", "objects [C++], supporting ATL COM+ 1.0"]
3+
ms.date: "05/09/2019"
54
ms.assetid: c6c95e64-9ee4-4a6e-8804-5930202ce1b9
65
---
76
# Adding an ATL COM+ 1.0 Component
87

8+
9+
::: moniker range="vs-2019"
10+
11+
The ATL COM+ 1.0 Component wizard is not available in Visual Studio 2019 and later.
12+
13+
::: moniker-end
14+
15+
::: moniker range="<=vs-2017"
16+
917
This wizard adds an object to your project that supports COM+ 1.0 services, including transactions.
1018

1119
## To add an ATL COM+ 1.0 component to your project
@@ -20,3 +28,7 @@ This wizard adds an object to your project that supports COM+ 1.0 services, incl
2028

2129
[Adding a Class](../../ide/adding-a-class-visual-cpp.md)<br/>
2230
[Adding a Method](../../ide/adding-a-method-visual-cpp.md)
31+
32+
::: moniker-end
33+
34+

docs/atl/reference/adding-objects-and-controls-to-an-atl-project.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
---
22
title: "Adding Objects and Controls to an ATL Project"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
f1_keywords: ["vc.appwiz.ATL.controls"]
55
helpviewer_keywords: ["ATL projects, adding objects", "wizards [C++], ATL projects", "ATL projects, adding controls", "controls [ATL], adding to projects", "objects [C++], adding to ATL projects", "ATL Control Wizard"]
66
ms.assetid: c0adcbd0-07fe-4c55-a8fd-8c2c65ecdaad
77
---
88
# Adding Objects and Controls to an ATL Project
99

10+
> [!NOTE]
11+
> The ATL COM+ 1.0 Component Wizard, ATL OLE DB Consumer wizard, and ATL Active Server Page Component wizard are not available in Visual Studio 2019 and later.
12+
1013
You can use one of the ATL code wizards to add an object or a control to your ATL- or MFC-based projects. For each COM object or control you add, the wizard generates .cpp and .h files, as well as an .rgs file for script-based registry support. The following ATL code wizards are available in Visual Studio:
1114

1215
||||

docs/atl/reference/com-plus-1-0-atl-com-plus-1-0-component-wizard.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
---
22
title: "COM+ 1.0, ATL COM+ 1.0 Component Wizard"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
f1_keywords: ["vc.codewiz.class.atl.mts.options"]
55
ms.assetid: 2fbe259c-6be1-4d0e-9cfe-721c75c97cb1
66
---
77
# COM+ 1.0, ATL COM+ 1.0 Component Wizard
88

9+
::: moniker range="vs-2019"
10+
11+
This wizard is not available in Visual Studio 2019 and later.
12+
13+
::: moniker-end
14+
15+
::: moniker range="vs-2017"
16+
917
Use this page of the ATL COM+ 1.0 Component Wizard to specify interface type and additional interfaces to be supported.
1018

1119
For more information on ATL projects and ATL COM classes, see [ATL COM Desktop Components](../../atl/atl-com-desktop-components.md).
@@ -44,6 +52,8 @@ For more information on ATL projects and ATL COM classes, see [ATL COM Desktop C
4452
|**Not supported**|Specifies that the object excludes transactions. Adds the component attribute macro custom(TLBATTR_TRANS_NOTSUPP,0) to the .h file (attributed projects) or to the .idl file (nonattributed projects).|
4553
|**Requires new**|Specifies that the object is always the root of a transaction stream by adding the component attribute macro custom(TLBATTR_TRANS_REQNEW,0) to the .h file (attributed projects) or to the .idl file (nonattributed projects).|
4654

55+
::: moniker-end
56+
4757
## See also
4858

4959
[ATL COM+ 1.0 Component Wizard](../../atl/reference/atl-com-plus-1-0-component-wizard.md)<br/>

docs/data/odbc/record-field-exchange-working-with-the-wizard-code.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Record Field Exchange: Working with the Wizard Code"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["DoFieldExchange method, overriding", "Unicode, with database classes", "field data members, declaring", "RFX (ODBC), wizard code", "RFX (ODBC), implementing", "field data members", "ODBC, RFX", "m_nParams data member, initializing", "m_nFields data member", "m_nParams data member", "overriding, DoFieldExchange", "m_nFields data member, initializing"]
55
ms.assetid: f00d882a-ff1b-4a75-9717-98d8762bb237
66
---
77
# Record Field Exchange: Working with the Wizard Code
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic explains the code that the MFC Application Wizard and **Add Class** (as described in [Adding an MFC ODBC Consumer](../../mfc/reference/adding-an-mfc-odbc-consumer.md)) write to support RFX and how you might want to alter that code.
1013

1114
> [!NOTE]

docs/data/odbc/recordset-architecture-odbc.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ This topic describes the data members that comprise the architecture of a record
2121
2222
## <a name="_core_a_sample_class"></a> Sample Class
2323

24+
> [!NOTE]
25+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
26+
2427
When you use the [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) from **Add Class** wizard to declare a recordset class derived from `CRecordset`, the resulting class has the general structure shown in the following simple class:
2528

2629
```cpp

docs/data/odbc/recordset-creating-and-closing-recordsets-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Creating and Closing Recordsets (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, creating", "recordsets, creating", "recordsets, opening", "recordsets, closing", "ODBC recordsets, closing", "ODBC recordsets, opening"]
55
ms.assetid: 8d2aac23-4396-4ce2-8c60-5ecf1b360d3d
66
---
77
# Recordset: Creating and Closing Recordsets (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
To use a recordset, construct a recordset object and then call its `Open` member function to run the recordset's query and select records. When you finish with the recordset, close and destroy the object.

docs/data/odbc/recordset-declaring-a-class-for-a-predefined-query-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Declaring a Class for a Predefined Query (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, queries", "predefined queries and recordsets", "stored procedures, and recordsets", "recordsets, predefined queries", "recordsets, stored procedures"]
55
ms.assetid: d27c4df9-dad2-4484-ba72-92ab0c8ff928
66
---
77
# Recordset: Declaring a Class for a Predefined Query (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
This topic explains how to create a recordset class for a predefined query (sometimes called a stored procedure, as in Microsoft SQL Server).

docs/data/odbc/recordset-declaring-a-class-for-a-table-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
---
22
title: "Recordset: Declaring a Class for a Table (ODBC)"
3-
ms.date: "11/04/2016"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets, declaring class for tables", "recordsets, declaring classes for tables"]
55
ms.assetid: 3fe286c2-3f3d-493d-9d8c-762310939d08
66
---
77
# Recordset: Declaring a Class for a Table (ODBC)
88

9+
> [!NOTE]
10+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
11+
912
This topic applies to the MFC ODBC classes.
1013

1114
The most common recordset class opens a single table. To declare a recordset class for a single table, use the [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) from **Add Class** and choose each column you want by naming a corresponding recordset field data member.

docs/data/odbc/recordset-dynamically-binding-data-columns-odbc.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Recordset: Dynamically Binding Data Columns (ODBC)"
3-
ms.date: "11/19/2018"
3+
ms.date: "05/09/2019"
44
helpviewer_keywords: ["ODBC recordsets [C++], binding columns dynamically", "data binding [C++], recordset columns", "recordsets [C++], binding data", "data binding [C++], columns in recordsets", "columns [C++], binding to recordsets"]
55
ms.assetid: bff67254-d953-4ae4-9716-91c348cb840b
66
---
@@ -19,6 +19,9 @@ Recordsets manage binding table columns that you specify at design time, but the
1919
2020
## <a name="_core_when_you_might_bind_columns_dynamically"></a> When You Might Bind Columns Dynamically
2121

22+
> [!NOTE]
23+
> The MFC ODBC Consumer wizard is not available in Visual Studio 2019 and later. You can still create a consumer manually.
24+
2225
At design time, the MFC Application Wizard or [MFC ODBC Consumer Wizard](../../mfc/reference/adding-an-mfc-odbc-consumer.md) (from **Add Class**) creates recordset classes based on the known tables and columns on your data source. Databases can change between when you design them and later when your application uses those tables and columns at run time. You or another user might add or drop a table or add or drop columns from a table that your application's recordset relies on. This probably is not a concern for all data-access applications, but if it is for yours, how can you cope with changes in the database schema, other than by redesigning and recompiling? The purpose of this topic is to answer that question.
2326

2427
This topic describes the most common case in which you might bind columns dynamically — having begun with a recordset based on a known database schema, you want to handle additional columns at run time. The topic further assumes that the additional columns map to `CString` field data members, the most common case, although suggestions are supplied to help you manage other data types.

0 commit comments

Comments
 (0)