|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Bogdan Munteanu
|
Nov 19, 2011 - 5:38 AM
|
Dear support, I have some difficulties using CExtShellDialogFile. Consider the BitmapEditor example shipped with the library.
Somewhere, on the disk create a file with the extension .zip ( be it target.zip). Now try to save the existing bitmap ( the fish) in the same folder with target.zip and give it the same root name target. Whenever I do that and I press Save, nothing happens although I would have expected to save the bitmap as target.bmp. Worse, pressing Save doesn’t give any feedback as to why it is not possible to save that file. The SaveAs dialog stays there as nothing happens. Can you please confirm and eventually suggest a fix if the case. Thank you, Bogdan
|
|
Technical Support
|
Nov 24, 2011 - 8:48 AM
|
Thank you for reporting this issue. To fix it, please update the source code for the following method: bool CExtPIDL::IsFolder() const
{
// basic folder detection
bool bRetVal = CheckAttributesOf( SFGAO_FOLDER );
if( ! bRetVal )
return false;
// exclude ZIP folders
DWORD dwAttributes = GetAttributesOf( SFGAO_FILESYSTEM|SFGAO_FILESYSANCESTOR|SFGAO_BROWSABLE );
if( dwAttributes != (SFGAO_BROWSABLE|SFGAO_FILESYSTEM) )
return false;
return true;
}
|
|
Bogdan Munteanu
|
Nov 26, 2011 - 3:47 PM
|
It worked, thank you. For future reference, is there any reason for showing zip archives in ’Save as’ dialogs? Although, not a show stopper, it looks a bit inconsistent to me.
|
|