Compiler Error C3626

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C3626.

keyword': '__event' keyword can only be used on COM interfaces, member functions and data members that are pointers to delegates

A keyword was used incorrectly.

The following sample generates C3626:

// C3626.cpp  
// compile with: /c  
struct A {  
   __event int i;   // C3626  
// try the following line instead  
// __event int i();  
};  

Show: