-2
我是新來的C++圖形用戶界面,並想知道更多的Visual C++圖形用戶界面的解釋需要
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
return 0;
}
會有人好心地解釋什麼HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR lpCmdLine, int nCmdShow
辦?
它的有據可查的GUI入口點http://msdn.microsoft.com/en-us/library/windows/desktop/ms633559(v=vs.85) .aspx – 2012-07-16 11:32:38
我不能只寫MessageBox(NULL,「再見,殘酷的世界!」,「注意」,MB_OK);像在C# – Cesar 2012-07-16 11:47:32
你的意思是沒有WinMain()?它會在沒有Main()的C#中工作嗎? – 2012-07-16 11:48:36