Error
Compiler Error C3921
-
Error Message
Use of S-prefixed strings requires /clr:oldSyntax command line option
-
In Visual C++ 2005, you no longer need to explicitly specify that a string is a
CLR string.
Takeout "S"
Compiler Error C2143
- C2143: syntax error : missing ';' before '.'
- C2873: 'System' : symbol cannot be used in a using-declation
// C2143a.cpp
// compile with: /clr /c
using System.Reflection; // C2143 // C2873
using namespace System::Reflection;
Use namespace & ::