Edit

Share via


Compiler Error C3116

'storage specifier' : invalid storage class for interface method

Remarks

You used typedef, register, or static as the storage class for an interface method. These storage classes are not permitted on interface members.

Example

The following example generates C3116:

// C3116.cpp
__interface ImyInterface
{
   static void myFunc();   // C3116
};