二者很明显的区别,dos和gui
字符模式模型
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
printf("Hello World!");
getchar();
return 0;
}
windows等价程序
#include <Windows.h>
int WINAPI WinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd )
{
MessageBox(NULL,"Hello World!","HelloMsg",MB_OK);
return 0;
}