Compiler Error C3116
'storage specifier' : invalid storage class for interface method
You used typedef
, register
, or static
as the storage class for an interface method. These storage classes are not permitted on interface members.
The following sample generates C3116:
// C3116.cpp
__interface ImyInterface
{
static void myFunc(); // C3116
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for