Mohit Gogia

When i am using filters of the form *.abc in GetOpenFileName & GetSaveFileName, a click on "My Computer" button hides all the drives but folders are getting shown properly.

Can anybody throw some light on how to fix that I don't want to use *.* for a filter. Following the open-file name arguments. I am using WinXP SP2.

Ofn.lStructSize = sizeof(OPENFILENAME);
Ofn.hwndOwner = hWnd;
Ofn.lpstrFilter = szOpenFilter; // TEXT("Abc Files (*.Abc\0*.Abc\0\0");
Ofn.lpstrFile= szFileName;
Ofn.nMaxFile = sizeof(szFileName)/ sizeof(szFileName[0]);
Ofn.lpstrInitialDir = (LPTSTR)NULL;
Ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_EXPLORER | OFN_LONGNAMES | OFN_OVERWRITEPROMPT;
Ofn.lpstrTitle = szDlgTitle;

GetSaveFileName(&Ofn)

-Thanks,

Mohit



Re: Visual C++ General Problem with Filters of GetOpenFileName and GetSaveFileName.

Damien Watkins - MSFT

Hello

Re: Problem with Filters of GetOpenFileName and GetSaveFileName.

Such questions are outside the scope of this forum - for the scope of the VC General forum please look at: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=19445&SiteID=1

For such issues please use an appropriate newsgroup, potentially one at http://msdn.microsoft.com/newsgroups.

OTP

Thanks

Damien