Condividi tramite


Errore del compilatore C3179

tipo gestito o WinRT senza nome non consentito

Tutte le classi e struct CLR e WinRT devono avere un nome.

L'esempio seguente genera l'errore C3179 e mostra come risolverlo:

// C3179a.cpp
// compile with: /clr /c
typedef value struct { // C3179
// try the following line instead
// typedef value struct MyStruct {
   int i;
} V;