IDBPromptInitialize

OLE DB Programmer's Reference

The IDBPromptInitialize interface allows the display of the data link dialog boxes programmatically. Using the data link user interface, users can build a connection string dynamically or select an existing data link (.udl) file.

A data source object can then be obtained based on the resulting connection string or .udl file name using the IDataInitialize interface.

For more information, see "Creating Data Source Objects" in Chapter 2: Data Source and Session Objects.

When to Call

Call IDBPromptInitialize to prompt the user to create an uninitialized data source object with specified properties set or to select a (.udl) file.

IDBPromptInitialize Methods

Method Description
IDBPromptInitialize::PromptDataSource Opens the Data Link Properties dialog box. Returns an uninitialized data source object with the specified properties set.
IDBPromptInitialize::PromptFileName Opens the Select Data Link dialog box. Allows the user to browse and organize .udl files. Returns a fully qualified path to the user-selected .udl file.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net