We recommend using Visual Studio 2017

Compiler Error C3117

 

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

S' : an interface can only have one base class

You declared an interface that inherits from multiple base classes.

The following sample generates C3117:

// C3117.cpp  
#include <windows.h>  
  
[ object, uuid("00000000-0000-0000-0000-000000000001") ]  
__interface I1  
{  
};  
  
[ object, uuid("00000000-0000-0000-0000-000000000002") ]  
__interface I2  
{  
};  
  
[ object, uuid("00000000-0000-0000-0000-000000000003") ]  
__interface I3 : I1, I2  
{   // C3117  
};  

Show: