M
Mike
Hi,
I have a peculiar problem with trying to assess FileInfo Attributes. I
am trying to do something like this
FileInfo* fi = new FileInfo(fileName);
if (fi->Attributes & Hidden)
{
// ...
}
However, the compiler issues the following errors
error C2039: 'Hidden' : is not a member of 'System::IO'
error C2065: 'Hidden' : undeclared identifier
I have included the proper namespace. Code completion even indicates
Hidden exists in the namespace.
Looking in the help tells me FileAttributes is defined as an
enumeration so the above should be valid.
Any other ideas?
Best regards,
Michael Powell
I have a peculiar problem with trying to assess FileInfo Attributes. I
am trying to do something like this
FileInfo* fi = new FileInfo(fileName);
if (fi->Attributes & Hidden)
{
// ...
}
However, the compiler issues the following errors
error C2039: 'Hidden' : is not a member of 'System::IO'
error C2065: 'Hidden' : undeclared identifier
I have included the proper namespace. Code completion even indicates
Hidden exists in the namespace.
Looking in the help tells me FileAttributes is defined as an
enumeration so the above should be valid.
Any other ideas?
Best regards,
Michael Powell