Compiler Error C3110


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

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

function_name' : you cannot overload a COM interface method

An interface that is prefaced by an interface attribute, such as:

cannot be overloaded. For example:

// C3110.cpp  
#include <unknwn.h>  
[ object, uuid= "4F98A180-EF37-11D1-978D-0000F805D73B" ]  
__interface ITestInterface  
   HRESULT mf1(void);  
   HRESULT mf1(BSTR); // C3110  
int main()