⑴ 编写一个 .c 文件 在 dos窗口下 调用vc6.0 的编译器和连接器 ,完成小程序,应该具体怎么做
messagebox()可能需要C++
写一个 ice.cpp 内容如下
#include <windows.h>#include <Winuser.h>
#pragma comment (lib, "User32.lib")main(){MessageBox(NULL,"Hello World",NULL,NULL);return 0; }
在DOS环境下编译链接命令是
CL ice.cpp
就会得到 ice.exe
然后 打
ice.exe
就可运行。
详细的CL 用法,在DOS窗 打
CL /?
就有帮助文件出现。