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
{{ message }}
Repository navigation
Commit 7b63500
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/data/oledb/commands-and-tables.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,8 +19,8 @@ The [ATL OLE DB Consumer Wizard](../../atl/reference/atl-ole-db-consumer-wizard.
19
19
20
20
- For data sources that support commands, you can use the `CCommand` class instead. To execute a command, call [Open](../../data/oledb/ccommand-open.md) on this class. As an alternative, you can call `Prepare` to prepare a command that you want to execute more than once.
21
21
22
-
`CCommand` has three template arguments: an accessor type, a rowset type, and a result type (`CNoMultipleResults`, by default, or `CMultipleResults`). If you specify `CMultipleResults`, the `CCommand` class supports the `IMultipleResults` interface and handles multiple rowsets. The [DBVIEWER](https://github.com/Microsoft/VCSamples) sample shows how to handle the multiple results.
22
+
`CCommand` has three template arguments: an accessor type, a rowset type, and a result type (`CNoMultipleResults`, by default, or `CMultipleResults`). If you specify `CMultipleResults`, the `CCommand` class supports the `IMultipleResults` interface and handles multiple rowsets. The [DBVIEWER](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB/Consumer) sample shows how to handle the multiple results.
23
23
24
24
## See also
25
25
26
-
[OLE DB Consumer Templates](../../data/oledb/ole-db-consumer-templates-cpp.md)
26
+
[OLE DB Consumer Templates](../../data/oledb/ole-db-consumer-templates-cpp.md)
You can determine data types on a rowset at compile time or at run time.
10
10
11
-
If you need to determine data types at compile time, use a static accessor (such as `CAccessor`).
11
+
If you need to determine data types at compile time, use a static accessor (such as `CAccessor`).
12
12
13
13
If you need to determine the data types at run time, use a dynamic (`CDynamicAccessor` or its children) or manual accessor (`CManualAccessor`). In these cases, you can call `GetColumnInfo` on the rowset to return the column binding information, from which you can determine types.
14
14
@@ -20,9 +20,9 @@ The following table lists the types of accessors provided in the consumer templa
20
20
|`CDynamicAccessor`|Automatic.|No.|Useful if you don't know the type of data in a rowset.|
21
21
|`CDynamicParameterAccessor`|Automatic, but can be [overridden](../../data/oledb/overriding-a-dynamic-accessor.md).|Yes, if the provider supports `ICommandWithParameters`. Parameters bound automatically.|Slower than `CDynamicAccessor` but useful for calling generic stored procedures.|
22
22
|`CDynamicStringAccessor[A,W]`|Automatic.|No.|Retrieves data accessed from the data store as string data.|
23
-
|`CManualAccessor`|Manual using `AddBindEntry`.|Manually using `AddParameterEntry`.|Fast; parameters and columns bound only once. You determine the type of data to use. (See [DBVIEWER](https://github.com/Microsoft/VCSamples) sample for an example.) Requires more code than `CDynamicAccessor` or `CAccessor`. It's more like calling OLE DB directly.|
23
+
|`CManualAccessor`|Manual using `AddBindEntry`.|Manually using `AddParameterEntry`.|Fast; parameters and columns bound only once. You determine the type of data to use. (See [DBVIEWER](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB/Consumer) sample for an example.) Requires more code than `CDynamicAccessor` or `CAccessor`. It's more like calling OLE DB directly.|
24
24
|`CXMLAccessor`|Automatic.|No.|Retrieves data accessed from the data store as string data and formats it as XML-tagged data.|
Copy file name to clipboardExpand all lines: docs/data/oledb/obtaining-metadata-with-schema-rowsets.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,10 +75,10 @@ For the reference of the schema rowset, typedef classes provided in the OLE DB T
75
75
76
76
For more information about OLE DB schema rowsets, including restriction columns, see [Appendix B: Schema Rowsets](/previous-versions/windows/desktop/ms712921(v=vs.85)) in the **OLE DB Programmer's Reference**.
77
77
78
-
For more complex examples of how to use schema rowset classes, see the [CatDB](https://github.com/Microsoft/VCSamples) and [DBViewer](https://github.com/Microsoft/VCSamples) samples.
78
+
For more complex examples of how to use schema rowset classes, see the [CatDB](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB/Consumer) and [DBViewer](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB/Consumer) samples.
79
79
80
80
For information about provider support for schema rowsets, see [Supporting Schema Rowsets](../../data/oledb/supporting-schema-rowsets.md).
Copy file name to clipboardExpand all lines: docs/data/oledb/ole-db-templates-attributes-and-other-implementations.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ For more information, you can:
26
26
27
27
- See the list of [OLE DB consumer classes](../../data/oledb/ole-db-consumer-templates-reference.md) or [OLE DB provider classes](../../data/oledb/ole-db-provider-templates-reference.md).
28
28
29
-
- See the list of [OLE DB templates samples](https://github.com/Microsoft/VCSamples).
29
+
- See the list of [OLE DB templates samples](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB).
30
30
31
31
- See [OLE DB Programmer's Reference](/sql/connect/oledb/ole-db/oledb-driver-for-sql-server-programming) (in the Windows SDK).
32
32
@@ -45,4 +45,4 @@ In the cases where the OLE DB Templates don't support OLE DB functionality, you
45
45
## See also
46
46
47
47
[OLE DB Programming](../../data/oledb/ole-db-programming.md)<br/>
48
-
[OLE DB Programming Overview](../../data/oledb/ole-db-programming-overview.md)
48
+
[OLE DB Programming Overview](../../data/oledb/ole-db-programming-overview.md)
Copy file name to clipboardExpand all lines: docs/data/oledb/using-manual-accessors.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,8 +34,8 @@ To do these things with the OLE DB Consumer Templates, use the `CManualAccessor`
34
34
35
35
1. Call `GetNextResult` to determine if more rowsets are available. Repeat steps 2 through 5.
36
36
37
-
For an example of a manual accessor, see `CDBListView::CallProcedure` in the [DBVIEWER](https://github.com/Microsoft/VCSamples) sample.
37
+
For an example of a manual accessor, see `CDBListView::CallProcedure` in the [DBVIEWER](https://github.com/microsoft/VCSamples/tree/master/VC2010Samples/ATL/OLEDB/Consumer) sample.
A Web browser-style application can access information from the Internet (such as HTML or active documents) or an intranet, as well as folders in the local file system and on a network. By deriving the application's view class from [CHtmlView](../../mfc/reference/chtmlview-class.md), effectively you make the application a Web browser by providing the view with the WebBrowser control.
11
11
12
-
###To create a Web browser application based on the MFC document/view architecture
12
+
## To create a Web browser application based on the MFC document/view architecture
13
13
14
14
1. Follow the directions in [Creating an MFC Application](../../mfc/reference/creating-an-mfc-application.md).
15
15
@@ -24,7 +24,7 @@ A Web browser-style application can access information from the Internet (such a
24
24
The WebBrowser control supports Web browsing through hyperlinks and Uniform Resource Locator (URL) navigation. The control maintains a history list that allows the user to browse forward and backward through previously browsed sites, folders, and documents. The control directly handles the navigation, hyperlinks, history lists, favorites, and security. Applications can use the WebBrowser control as an active document container to host active documents as well. Thus, richly formatted documents such as Microsoft Excel spreadsheets or Word documents can be opened and edited in place from within the WebBrowser control. The WebBrowser control is also an ActiveX control container that can host any ActiveX control.
25
25
26
26
> [!NOTE]
27
-
> The WebBrowser ActiveX control (and therefore `CHtmlView`) is available only to applications running under Windows versions in which Internet Explorer 4.0 or later has been installed.
27
+
> The WebBrowser ActiveX control (and therefore `CHtmlView`) is available only to applications running under Windows versions in which Internet Explorer 4.0 or later has been installed.
28
28
29
29
Because `CHtmlView` simply implements the Microsoft Web browser control, its support for printing is not like other [CView](../../mfc/reference/cview-class.md)-derived classes. Rather, the WebBrowser control implements the printer user interface and printing. As a result, `CHtmlView` does not support print preview, and the framework does not provide for other printing support functions: for example, [CView::OnPreparePrinting](../../mfc/reference/cview-class.md#onprepareprinting), [CView::OnBeginPrinting](../../mfc/reference/cview-class.md#onbeginprinting), and [CView::OnEndPrinting](../../mfc/reference/cview-class.md#onendprinting), which are available in other MFC applications.
0 commit comments