Warned if both of `main` and `wmain` are exposed: ``` LINK : warning LNK4067: ambiguous entry point; selected 'mainCRTStartup' ```
11 lines
187 B
C
11 lines
187 B
C
#include <windows.h>
|
|
#include <stdio.h>
|
|
|
|
extern int wmain(int, WCHAR**);
|
|
|
|
int WINAPI
|
|
WinMain(HINSTANCE current, HINSTANCE prev, LPSTR cmdline, int showcmd)
|
|
{
|
|
return wmain(0, NULL);
|
|
}
|