Edit

Share via


Compiler Error C3120

'method_name' : interface methods cannot take a variable argument list

An interface method cannot take a variable argument list. For example, the following interface definition generates C3120:

// C3120.cpp
__interface A {
int X(int i, ...);    // C3120
};

int main(void) { return(0); }