mundane file attributes problerm

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top