#pragma comment(lib,"User32.lib") #include <windows.h> int main() { MessageBox(NULL, TEXT("Hello!"), TEXT("第一个窗口程序"), MB_OK); }