Export (0) Print
Expand All
Expand Minimize

Compiler Error C2731

Error Message

'identifier' : function cannot be overloaded

The functions main, WinMain, DllMain, and LibMain cannot be overloaded.

The following sample generates C2731:

// C2731.cpp
extern "C" void WinMain(int, char *, char *);
void WinMain(int, short, char *, char*);   // C2731

Community Additions

ADD
Show:
© 2014 Microsoft