2.1.27.1 BrowseGetPath


Description

Open an FDLog Browse (OpenPath) dialog box.

Syntax

string BrowseGetPath( LPCSTR lpcszPath = NULL, LPCSTR lpcszDialogName = NULL )

Parameters

lpcszPath
[input]Initial path when dialog opens, default NULL uses FDLog tracking
lpcszDialogName
[input]Title of the dialog box, default NULL uses "Modifylocation"

Return

Returns the path browsed to or an empty string if Cancel button in dialog

box is clicked.

Examples

EX1

int BrowseGetPath_ex1()
{
    string strPath;
    strPath = BrowseGetPath();            
    // or
    //strPath = BrowseGetPath( "C:\\Program Files\\" );        
    // or
    //strPath = BrowseGetPath( GetAppPath() + "OriginC\\", "Browse" );
    if( strPath.IsEmpty() )
        printf( "User has cancelled the Open dialo box." );
    else
        printf("The choosed path is %s\n.", strPath);
    return 0;
}

Remark

See Also

browse_get_path_dialog

Header to Include

origin.h

Reference