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 ?

pl help