|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- #include <windows.h>
- /*
- 不包含Windows.h,弹框 “Hello, world!”
- */
- int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
- {
- MessageBox(NULL, TEXT("Hello World!"), TEXT("SDK"), MB_OKCANCEL);
- return 0;
- }
复制代码
在不包含windows.h 头文件的时候,怎么将下面的Hello World 弹框出来
- typedef unsigned long DWORD;
- int __stdcall MessageBoxA(DWORD hWnd, DWORD lpText, DWORD lpCaption, DWORD uType);
- int __stdcall WinMain(DWORD hInstance, DWORD hPrevInstance, DWORD lpCmdLine, DWORD nCmdShow)
- {
- MessageBoxA(0, "Hello World!", "SDK", 0);
- return 0;
- }
复制代码
|
|