
WinMain函数的参数加上_In_即可,注意第二个加的是_In_opt_
#include <windows.h>
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPreInstance, _In_ LPSTR CmdLine, _In_ int nCmdShow)
{
return 0;
}

版权声明:本文为Bruce_4原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。

#include <windows.h>
int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPreInstance, _In_ LPSTR CmdLine, _In_ int nCmdShow)
{
return 0;
}
