you might try something like this:
Code:
EDITSTREAM es;
OPENFILENAME ofn;
char szFilename[ 256 ];
memset( &ofn, 0, sizeof(OPENFILENAME) );
strcpy( szFilename, "*.txt" );
ofn.lStructSize = sizeof(OPENFILENAME);
ofn.hwndOwner = hDlg;
ofn.lpstrFilter = "Text File\0*.txt\0All Files\0*.*\0\0";
ofn.lpstrFile = szFilename;
ofn.nMaxFile = 256;
ofn.lpstrTitle = "Open Text File";
ofn.Flags = OFN_FILEMUSTEXIST;
ofn.lpstrInitialDir = fullPath; // Put you initial path fullPath
if( ! GetOpenFileName( &ofn ) )
return( FALSE );
That should give you an "open file" dialog