CDX3.1在VC6中编译的问题?

我在http://www.codeguru.com/Cpp/G-M/directx/article.php/c4367 上下了CDX3.1,安装后,在VC6中新建一个CDX的工程,并在Tools->Option->Directories中加入CDX的头文件和LIB库文件,试着编译上面给出的一个例子Screen Flipping ,但出现如下错误,怎么也想不通哪里出现了问题,请各位帮帮忙!!

Compiling...
CDX.cpp
d:\program files\cdx\include\cdxscreen.h(64) : error C2146: syntax error : missing ';' before identifier 'hMonitor'
d:\program files\cdx\include\cdxscreen.h(64) : error C2501: 'HMONITOR' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(64) : error C2501: 'hMonitor' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(71) : error C2065: 'LPDDSURFACEDESC2' : undeclared identifier
d:\program files\cdx\include\cdxscreen.h(71) : error C2146: syntax error : missing ')' before identifier 'lpDDSurfaceDesc'
d:\program files\cdx\include\cdxscreen.h(71) : warning C4229: anachronism used : modifiers on data are ignored
d:\program files\cdx\include\cdxscreen.h(71) : error C2059: syntax error : ')'
d:\program files\cdx\include\cdxscreen.h(75) : error C2061: syntax error : identifier 'HMONITOR'
d:\program files\cdx\include\cdxscreen.h(134) : error C2146: syntax error : missing ';' before identifier 'GetDD'
d:\program files\cdx\include\cdxscreen.h(134) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(134) : warning C4183: 'GetDD': member function definition looks like a ctor, but name does not match enclosing class
d:\program files\cdx\include\cdxscreen.h(148) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
d:\program files\cdx\include\cdxscreen.h(152) : error C2146: syntax error : missing ';' before identifier 'm_lpDD'
d:\program files\cdx\include\cdxscreen.h(152) : error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(152) : error C2501: 'm_lpDD' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(153) : error C2146: syntax error : missing ';' before identifier 'm_ZBuffer'
d:\program files\cdx\include\cdxscreen.h(153) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxscreen.h(153) : error C2501: 'm_ZBuffer' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxsurface.h(246) : error C2061: syntax error : identifier 'LPDDSURFACEDESC2'
d:\program files\cdx\include\cdxsurface.h(247) : error C2146: syntax error : missing ';' before identifier 'GetDDS'
d:\program files\cdx\include\cdxsurface.h(247) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxsurface.h(247) : warning C4183: 'GetDDS': member function definition looks like a ctor, but name does not match enclosing class
d:\program files\cdx\include\cdxsurface.h(256) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7'
d:\program files\cdx\include\cdxsurface.h(263) : error C2146: syntax error : missing ';' before identifier 'm_DDSD'
d:\program files\cdx\include\cdxsurface.h(263) : error C2501: 'DDSURFACEDESC2' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxsurface.h(263) : error C2501: 'm_DDSD' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxsurface.h(264) : error C2146: syntax error : missing ';' before identifier 'm_lpDDS'
d:\program files\cdx\include\cdxsurface.h(264) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxsurface.h(264) : error C2501: 'm_lpDDS' : missing storage-class or type specifiers
d:\program files\cdx\include\cdxmidi.h(47) : fatal error C1083: Cannot open include file: 'dmksctrl.h': No such file or directory
Error executing cl.exe.

CDX.obj - 27 error(s), 3 warning(s)

[4410 byte] By [ahuu-东方不败] at [2008-5-24]
# 1
对了,我的系统是WIN2000 professional,DirectX7.0
cdx3.1要求的环境是:Windows 95/98/2000, DirectX 3-8, Visual C++ 6
ahuu-东方不败 at 2007-10-19 > top of Msdn China Tech,专题开发,技术,项目,游戏开发...