Visual C ++ 2010 Express for Win32 Project link only works as an administrator

Using Visual C ++ 2010 Express as a regular user, I created a Win32 project with a main.cpp file containing: enable

int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int) { return 0; } 

At the build stage, as a regular user, I get: MSVCRTD.lib (crtexe.obj): error LNK2019: unresolved external symbolic main link in the __tmainCRTStartup function

However, if I run the same project as the administrator, it builds (links) perfectly, and I get the required executable. Any ideas as to why this is happening?

0
source share

Source: https://habr.com/ru/post/1389960/


All Articles