Click to See Complete Forum and Search --> : GetSaveFileName Parameters


jmgreene
May 28th, 1999, 09:03 AM
I can't figure out how to use this function. Any help would be greatly appreciated.

jmgreene
May 28th, 1999, 09:33 AM
I've got this so far: But how do I make the dialog appear?
OPENFILENAME filename;

LPCTSTR Filter = "*.txt";
LPSTR InitialDir = "c:\\";
LPSTR DefExt = "*.txt";
filename.lpstrFilter = Filter;
filename.lpstrInitialDir = InitialDir;
filename.lpstrDefExt = DefExt;
OPENFILENAME *filepoint = &filename;
GetSaveFileName(filepoint);