Muistiinpano
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää kirjautua sisään tai vaihtaa hakemistoja.
Tälle sivulle pääsy edellyttää valtuutusta. Voit yrittää vaihtaa hakemistoja.
'declaration' was previously declared or defined with a different managed or WinRTmodifier
Remarks
A forward declaration and an actual declaration require that there be no conflicts or inconsistencies in the declaration of attributes.
Example
The following example generates C3816 and shows how to fix it:
// C3816a.cpp
// compile with: /clr /c
class C1;
// try the following line instead
// ref class C1;
ref class C1{ // C3816, forward declaration does not use ref
};