1
Vote

Exception in SevenZipTestWPF in windows xp environment.

description

My machine is running with Windows Xp, and VSTS 2010.
While compiling SevenZipTesWPF project i am not getting any compilation errors.
however, if i am running the app, and while trying to browse Archive, it is throwing exception saying Common File Dialog requires Windows Vista or later.
 
To fix this issue, i made a tweak to use OpenFileDialog() instead of CommonOpenFileDialog() object.
but, i feel this should be included as part of the code it self.
Changed one:
private void b_Archive_Click(object sender, RoutedEventArgs e)
{
var dialog = new OpenFileDialog();
dialog.Title = "Select the archive file";
bool? result = dialog.ShowDialog();
if (result.HasValue && result.Value)
{
}
}

comments