Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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++.


The following sample generates C3294.

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

Community Additions

© 2015 Microsoft