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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Hi All!

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