September 23rd, 2013, 05:06 AM
SetCurrentDirectory problem ..
I am using CFileDialog to open different types of files in my application. I open file from c:\stdparamfile directory by File Menu
Open menu item. (OnOpenDocument) . But when I change directory and open other type of file, that path is set for OnOpenDocument function. I need to select path c:\stdparamfile directory again.
I am using GetCurrentDirectory , SetCurrentDirectory functions but problem exists.
I set dialog path by dlg.m_ofn.lpstrInitialDir .
How to get back to original directory ?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.