VC6.0包含DSound错误 [英] VC6.0 include DSound Error

查看:152
本文介绍了VC6.0包含DSound错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个来自VS2010的项目,我想在VC6中编译它以支持winXP,我在项目中使用了DSound,当我包含dsound.h时,出现了错误,错误是:

hello , i had a project from VS2010 and i want to compile it in VC6 for supporting winXP, i had used DSound in my project , when i include dsound.h it was something wrong , the error is :

d:\program files\microsoft visual studio 10.0\vc\include\vadefs.h(48) : error C2144: syntax error : missing ';' before type 'unsigned int'



文件"vadefs.h"由vs2010提供,错误行为5th



file "vadefs.h" is provide by vs2010 , the error line is 5th

1    #ifndef _UINTPTR_T_DEFINED
2    #ifdef  _WIN64
3    typedef unsigned __int64    uintptr_t;
4    #else
5    typedef _W64 unsigned int   uintptr_t;
6    #endif
7    #define _UINTPTR_T_DEFINED
8    #endif



但是我可以在此文件的开头找到_W64的定义,我很困惑,是VC6不支持DirectX9吗?

如何解决?
感谢您的时间:)



but i can find defination of _W64 in the head of this file , im confused , is that VC6 not support DirectX9 ?

How to fix this?
thanks for your time : )

推荐答案

_W64不是定义.它是一个编译器关键字.据我所知,它是在Visual Studio .Net 2003/VC7中引入的.

更新:您可以使用空定义(#define _W64或将其添加到项目编译器选项中)来避免VC6错误.

_W64 is not a definition. It is a compiler keyword. As far as I know, it has been introduced with Visual Studio .Net 2003 / VC7.

Update: You may use an empty definition (#define _W64 or add it to the project compiler options) to avoid the error with VC6.

Joe


这篇关于VC6.0包含DSound错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆