[Flags] or [FlagsAttribute] is no longer accepted by MC++

G

Guest

Hi!

I have a Managed C++ class that previuosly compiled Ok in VS .NET 2003. The
only thing that has changed since last time I compiled my code is that I have
installed Windows XP SP2 and also updated my .Net Framework Runtime 1.1 with
the SP1. Now the compiler says:

:error C2337: 'Flags' : attribute not found; it is neither a built-in nor a
custom attribute that is accessible in the current namespace

Further down it also says:
: error C2337: 'SecurityPermissionAttribute' : attribute not found; it is
neither a built-in nor a custom attribute that is accessible in the current
namespace

I have not changed the code in any way, I just opened the VS project after
these updates, and now it does not compile! Tried to search my MSDN Library
October 2004 documentation, but can't find anything about this!

/Thanks
 
G

Guest

Hi All!

I have fixed this issue by re-installing Visual Studio .NET 2003 on my
machine.
Now my code compiles ok.
 

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