Go into your project properties and ensure that you have the correct setting for all platforms and configurations as shown below -
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I tried to create a simple desktop app for Windows in VS 2022. The debug configuration is set to Windows (/SUBSYSTEM:WINDOWS), but it still isn't able to build WinMain function.
Here's the code:
int WINAPI WinMain(
In HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
In LPSTR lpCmdLine,
In int nCmdShow
);
As a result, it gives me 2 errors.
1 - MSVCRTD.lib(exe_winmain.obj) : error LNK2019: unresolved external symbol WinMain referenced in function "int __cdecl invoke_main(void)" (?invoke_main@@YAHXZ)
2 - fatal error LNK1120: 1 unresolved externals
idk what to do with it
Go into your project properties and ensure that you have the correct setting for all platforms and configurations as shown below -