Create a MFC Application (UNICODE), paste following code in one of your cpp file. int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { return TRUE } Build project and following error occurred: Error 1 e
一.int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int nCmdShow) 四个参数: hInstance:程序当前实例的句柄(handle to current instance),以后随时可以用GetModuleHandle(0)来获得 hPrevInstance:前一个实例的句柄(handle to previous instance),在Win32中,每一个进程都有一个