Compilerfehler C3179
Visual Studio 2008
Aktualisiert: November 2007
Fehlermeldung
Ein nicht verwalteter Typ ist nicht zulässigan unnamed managed type is not allowed
Alle CLR-Klassen und Strukturen müssen benannt sein.
Im folgenden Beispiel wird C3179 generiert:
// C3179a.cpp
// compile with: /clr /c
typedef value struct { // C3179
// try the following line instead
// typedef value struct MyStruct {
int i;
} V;
Im folgenden Beispiel wird C3179 generiert:
// C3179b.cpp
// compile with: /clr:oldSyntax /c
#using <mscorlib.dll>
typedef __value struct { // C3179
// try the following line instead
// typedef __value struct MyStruct {
int i;
} V;