Using PBCC 5 with ComDlg32.INC
The following is the test code.
The question is how do I get the File name/path from the API call?
The Function stores the File name and path at string pointer in ofn.lpstrFile, but ofn is declared local.
The Function return a fail/nofail status only.
#COMPILE EXE
#DIM ALL
#INCLUDE "ComDlg32.INC"
FUNCTION PBMAIN () AS LONG
DIM FileName AS OpenFileName5 'Declare structure
PRINT OpenFileDialog ( ASC($NUL), _ ' parent window
"", _ ' caption
"test.bas", _ ' filename
"", _ ' start directory
"", _ ' filename filter
"bas", _ ' default extension
0 _ ' flags
)
END FUNCTION
The following is the test code.
The question is how do I get the File name/path from the API call?
The Function stores the File name and path at string pointer in ofn.lpstrFile, but ofn is declared local.
The Function return a fail/nofail status only.
#COMPILE EXE
#DIM ALL
#INCLUDE "ComDlg32.INC"
FUNCTION PBMAIN () AS LONG
DIM FileName AS OpenFileName5 'Declare structure
PRINT OpenFileDialog ( ASC($NUL), _ ' parent window
"", _ ' caption
"test.bas", _ ' filename
"", _ ' start directory
"", _ ' filename filter
"bas", _ ' default extension
0 _ ' flags
)
END FUNCTION
Comment