This documentation is archived and is not being maintained.

Compiler Error C3294

Error Message

this syntax is not support with /clr:oldSyntax: please use 'function' instead

Features available in the new syntax for CLR programming are not available when compiling for Managed Extensions for C++.

For more information, see Destructors and Finalizers in Visual C++.

Example

The following sample generates C3294.

// C3294.cpp
// compile with: /clr:oldSyntax /c
__gc class R {
protected:
   !R() {}   // C3294
   R() {}   // OK
   ~R() {}   // OK
};
Show: