#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ;
return 0 ;
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
MessageBox (NULL, TEXT ("Hello, Windows 98!"), TEXT ("HelloMsg"), 0) ;
return 0 ;
}
//windows.h文件在C:\Program Files\Microsoft Visual Studio\VC98\Include目录下。
// MessageBox的函数原型
int MessageBox( HWND hWnd, // handle to owner window 窗口句柄,属于哪个窗口 LPCTSTR lpText, // text in message box 消息框显示的文本内容 LPCTSTR lpCaption, // message box title 消息框标题 UINT uType // message box style 消息框风格 );
//Winmain函数是windows程序的入口;