chromiumembedded/cef

'wWinMain': function cannot be overloaded

Closed this issue · 2 comments

Describe the bug
I try to build the cef project by myself and I just use this simply code to build. It show 'wWinMain': function cannot be overloaded

To Reproduce

// Program entry point function.
int APIENTRY wWinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine,
    int nCmdShow) {
    UNREFERENCED_PARAMETER(hPrevInstance);
    UNREFERENCED_PARAMETER(lpCmdLine);

    return shared::RunMain(hInstance, nCmdShow);
}




An executable target can only have one wWinMain implementation.

Do you have the special technique to solve it?
Because I just paste the similar code, like this

int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow) {
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);

int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow) {
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);