I have this code:
of.lpstrCustomFilter = "*.csv";
of.hwndOwner = AfxGetMainWnd()->m_hWnd;
of.lpstrFile = "count.csv";
of.lpstrInitialDir = "e:\\";
of.lpstrDefExt = ".csv";
BOOL bRes = ::GetSaveFileName(&of);
it compiles and runs, but when I call GetSaveFileName, no dialog ever appears and bRes is false.
GetLastError() returns 87, "the paramater is incorrect"
but it's compiling and running, so what's the problem?
All I want to do is open a dialog where the user can choose a path and .CSV filename