|
??我买了《visual c++游戏设计》
我的系统是winxp,运行正常。
用visual c++6运行光盘代码,出现下面问题:
1。安装directx8.1后,提示安装成功,但我找不到lib和include目录。
2。用vc6编译练习7的源码时出错,提示头文件d3d8.h找不到。
3。所有使用directx的源码在vc6中编译时都出现相同的3个错误(如下)。
似乎是不能识别LPDIRECTDRAW7。不知什么原因。
--------------------Configuration: canvas - Win32 Debug--------------------
Compiling...
canvasFrame.cpp
e:\tgg\vc游戏\code\ch12\ch12-2\canvasframe.cpp(52) :error C2146: syntax error : missing ';' before identifier 'DD'
e:\tgg\vc游戏\code\ch12\ch12-2\canvasframe.cpp(52) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
e:\tgg\vc游戏\code\ch12\ch12-2\canvasframe.cpp(52) :
fatal error C1004: unexpected end of file found
Error executing cl.exe.
canvas.exe - 3 error(s), 0 warning(s) |
|