469,909 Members | 1,752 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,909 developers. It's quick & easy.

mundane file attributes problerm

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
Nov 17 '05 #1
1 1029
Mike,

Try FileAttributes::Hidden, instead
--
Tomas Restrepo
to****@mvps.org

"Mike" <po******@comcast.net> wrote in message
news:62**************************@posting.google.c om...
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

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Mark | last post: by
1 post views Thread by Christian Rühl | last post: by
1 post views Thread by Christian Rühl | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.