X
xenny
Hi,
I'm trying to see if a file (exportfile) is set to read only using
File::GetAttributes:
if ((File::GetAttributes(exportfile.c_str()) &
FileAttributes::ReadOnly) != 0);
{
MessageBox::Show("The File is Read Only","Warning");
}
I've tried that and a few variations but it always returns true.
Any help would be greatly appreciated.
Thanks,
Chris
I'm trying to see if a file (exportfile) is set to read only using
File::GetAttributes:
if ((File::GetAttributes(exportfile.c_str()) &
FileAttributes::ReadOnly) != 0);
{
MessageBox::Show("The File is Read Only","Warning");
}
I've tried that and a few variations but it always returns true.
Any help would be greatly appreciated.
Thanks,
Chris