| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1019 人关注过本帖
标题:DirectDraw初学问题
只看楼主 加入收藏
hdshdzh
Rank: 2
等 级:论坛游民
帖 子:77
专家分:11
注 册:2010-5-13
结帖率:92.31%
收藏
已结贴  问题点数:20 回复次数:1 
DirectDraw初学问题
我这有个程序,在VC6。0工具上设置了SKD的路径,在工程里也加了dxguid.lib ddraw.lib还是编译出错!像这样error C2501: 'LPDIRECTDRAW7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(12) : error C2501: 'm_pDD7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(13) : error C2146: syntax error : missing ';' before identifier 'm_pPSur'
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(13) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(13) : error C2501: 'm_pPSur' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(14) : error C2146: syntax error : missing ';' before identifier 'm_pBBuf'
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(14) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(14) : error C2501: 'm_pBBuf' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(20) : error C2146: syntax error : missing ';' before identifier 'GetPBuffer'
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(20) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(23) : warning C4183: 'GetPBuffer': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(24) : error C2146: syntax error : missing ';' before identifier 'GetBBuffer'
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(24) : error C2501: 'LPDIRECTDRAWSURFACE7' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(27) : warning C4183: 'GetBBuffer': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\myprojects\directdraw4\graphic.h(29) : error C2061: syntax error : identifier 'LPDIRECTDRAWSURFACE7' LPDIRECTDRAWSURFACE7这个结构有问题!之前下一个2006版的SDK,后来再下一个2009的也不行,请问高手,这是什么问题!是电脑不支持还是SDK没用,还是SDK没连上!
搜索更多相关主题的帖子: DirectDraw 初学 
2010-11-25 15:51
秀痘魔导士
Rank: 9Rank: 9Rank: 9
等 级:蜘蛛侠
威 望:6
帖 子:250
专家分:1150
注 册:2009-12-23
收藏
得分:14 
在Project-->Setting-->Link-->L object/Module里添加d3d8.lib d3d9.lib ddraw.lib dinput.lib...(名称我忘记了,可能名称记错了) ...等等,然后重新全部编译一次.
2010-11-26 13:44
快速回复:DirectDraw初学问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014769 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved