|
|
做到DirectX时,编译出错,就不知所措,我也加入了<ddraw.h>,"ddraw.lib"和"dxguid.lib"到工程, 错误信息如下::\我的文档\学习资料\game\gamemain.cpp(112) : error C2065: 'DirectDrawCreateEx' : undeclared identifier
d:\我的文档\学习资料\game\gamemain.cpp(112) : error C2065: 'IID_IDirectDraw7' : undeclared identifier
d:\我的文档\学习资料\game\gamemain.cpp(115) : error C2065: 'hwnd' : undeclared identifier
d:\我的文档\学习资料\game\gamemain.cpp(117) : error C2660: 'SetDisplayMode' : function does not take 5 parameters
执行 cl.exe 时出错.game.exe - 1 error(s), 0 warning(s)
我用的环境是VC6.0,以及DirectX是VC6.0++自带的,这种情况怎么解决,难道是出在宏定义上??不懂了,请指教!谢 |
|