المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : GetSaveFileName Problem



C++ Programming
11-26-2009, 06:01 AM
Hello Friends
I m using getSaveFilename on some button and I am also using OPENFILENAME structure also to provide InitialDirectory.

And same thing doing on some other button too.
and both are having different Initial Directories.

Now, the Problem is when I open save dialog through first button,it is opening in right folder using ofn.lpstrinitialdir.

But If i open second save dialog after opening of first one then it is not opening in its own folder ,it is opening the directory tht i used to open first save dialog.I checked when I open second dialog the value of of.lpstrinitialdir is right but it is taking fist dialog value only.

Please Suggest me something.

Thanks & Regards
Yogesh