Compiler Error C3748

 

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 C3748.

interface': managed interfaces may not fire events

The __event keyword cannot appear inside an interface.

The following sample generates C3748:

// C3748.cpp  
__interface I {  
// try the following line instead  
// struct I {  
   __event void f();   // C3748  
};  
  
int main() {  
}  

Show: