Export (0) Print
Expand All
Expand Minimize

Compiler Error C3632

Error Message

'event': illegal style of event for construct

__event declarations are not valid in all constructs.

C3632 is only reachable using /clr:oldSyntax.

The following sample generates C3632:

// C3632.cpp
// compile with: /clr:oldSyntax
#using <mscorlib.dll>
using namespace System;

public __gc __interface I
{
   __event void sna();   // C3632
};

// use the following as an example
__delegate void MyDel();
public __gc __interface I2
{
   __event MyDel* sna;
};

int main()
{
}

Community Additions

ADD
Show:
© 2015 Microsoft