- UID
- 2198
注册时间2005-6-29
阅读权限255
最后登录1970-1-1
副坛主
该用户从未签到
|
#define WINAPI __stdcall
#define MB_OK 0x00000000L
typedef char CHAR;
typedef CHAR *LPSTR,*LPCTSTR;
struct HINSTANCE__
{
int unused;
};
typedef struct HINSTANCE__ *HINSTANCE;
struct HWND__
{
int unused;
};
typedef struct HWND__ *HWND;
typedef unsigned int UINT;
extern "C"
int __stdcall MessageBoxA( // 要加上__stdcall 哦
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType // message box style
);
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nShowCmd )
{
MessageBoxA(NULL,"Hello,Nisy!","ChinaPYG",MB_OK);
return 0;
} |
|