Code generation from Java and C++ is deprecated in the Code Engineering Plugin. Please use the CATIA Software Producer Plugin for this functionality.

References

Supported dialects 

C++ code engineering supports three dialects, set in our modelling tools:

Syntax under the Managed dialect is deprecated in Microsoft Visual studio 2005. 
New dialects in C++ CE