windows 9x /nt 环境下的c程序设计快速入门
先看一个十分简单的程序
//---------------------------------------------------------------------------------------------------
// winfirst.c
#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 ;
}
//------------------------------------------------------------------------------------------------------
首先我们看 #include<windows.h>,这是每一个用c写的win32程序都必须含有的头文件,申明了绝大部分的winapi.(比如说下面的messagebox函数)。
注:api =application program interface,应用软件编程接口,dos年代的系统中断就是api