CDataSource::OpenWithPromptFileName

HRESULT OpenWithPromptFileName( HWND hWnd = GetActiveWindow( ), DBPROMPTOPTIONS dwPromptOptions = DBPROMPTOPTIONS_NONE, LPCOLESTR szInitialDirectory = NULL );

Return Value

A standard HRESULT.

Parameters

hWnd

[in] Handle to the window that is to be the parent of the dialog box.

dwPromptOptions

[in] Determines the style of locator dialog box to display. See Msdasc.h for possible values.

szInitialDirectory

[in] The initial directory to display in the locator dialog box.

Remarks

Calls the Data Links component and asks it to open the Organize Dialog dialog box, which allows the user to select a previously created data source connect (.MDL) file. The selected file is then used to open the data source.

For more information about data link files (.MDL files), see Data Link API Overview in the Platform SDK.

CDataSource OverviewClass Members