http://www.microsoft.com/en-us/download/details.aspx?id=6812
安装Microsoft DirectX SDK (June 2010) 时,提示如下图所示的Error Code s1023
解决办法:
可以参考stack overflow上的:
大概是说:
1、1.查看系统temp目录下(也就是:C:\Users\[your user name]\AppData\Local\Temp),是否有如下文件:
Microsoft Visual C++ 2010 x86 Redistributable Setup_***.html 或者是 Microsoft Visual C++ 2010 x64 Redistributable Setup_***.html
2.打开该文件,查看是否有如下错误(可以在文件中搜索:“installation”这个单词):
Installation Blockers: 已在此计算机上检测到 Microsoft Visual C++ 2010 Redistributable 的更新版本。
如下图:
这就证明你的机器之前就已经有装过一个高版本的
Microsoft Visual C++ 2010 Redistributable 了。需要把高版本的卸载掉。
3、打开控制面板,卸载掉高版本的。
卸载 Microsoft Visual C++ 2010 x86 redistribuable - 10.0.( 数比30319大的) 或者 Microsoft Visual C++ 2010 x64 redistribuable - 10.0.( 数比30319大的)
如下图所示:
再次运行安装程序,即可。
Microsoft DirectX SDK (June 2010)
下载地址:
http://www.microsoft.com/en-us/download/details.aspx?id=6812
directx在vs2010里面配置过程:
http://blog.163.com/hypc_bevery@yeah/blog/static/929371632011628112759953/
很久之前就想尝试一下制作游戏了,但是课程之多都没有什么时间来真正去学习,就当是自己的一个爱好吧!
需要设计游戏,搭建其编译运行环境当然是第一步,这里我将会简单地说明一下 VS2010 + DirectX 的编译环境。
有以下步骤:
1. 下载 DirectX SDK,并安装。
2. 设置 VS2010。
1. 下载 DirectX SDK,并安装
我安装的是
Microsoft DirectX SDK (June 2010)
,你可以到
http://msdn.microsoft.com/en-us/directx/default
下载最新的 DirectX SDK,如果有新版本出来,下面设置也是大同小异,安装就不用我说了吧,一直点下一步到安装完就OK了,嘿嘿。
2. 配置VS2010的DirectX开发环境
1>.
建立项目。由于VS2010只能配置单个项目的DirectX环境,所以我们需要先建立项目。
2>.
打开了项目属性页。VS2010 → “菜单栏” → “视图” → “属性管理器” → 右键需要配置DirectX环境的项目 → “属性”
3>.
加入 DirectX 路径。左边”配置属性” → “VC++目录”,如下图
#.
添加“
$(DXSDK_DIR)Utilities/Bin/x86
”(不包括双引号)到 “
可执行文件目录
”;
#.
添加“
$(DXSDK_DIR)Include
”(不包括双引号)到 “
包含目录
”;
#.
添加“
$(DXSDK_DIR)Lib/x86
”(不包括双引号)到 “
库目录
”;
#其他的地方 比如c/c++ 链接器里面都不用添加了,只是在这里面的vc++目录里面添加即可,此外还要再常规里面将字符集设置为使用多字节字符集,若是设置为了unicode之后会出错。如下:(原因不知道)
注意
:如果是制作64位的游戏,添加的是“
$(DXSDK_DIR)Lib/x64
”(不包括双引号)到 “
库目录
”,其他不变.
OK,开发环境搞定,终于可以开始游戏开发了
。Enjoying!!
贴一个官网帮助文档的安装说明(E文):
Install the DirectX SDK
After installing the DirectX SDK, before building a project in Visual Studio, you must initialize the directories in Visual Studio by doing the following:
Select Tools -> Options -> Projects and Solutions -> VC++ Directories
Show Executable files and add: $(DXSDK_DIR)Utilities/Bin/x86
Show Include files and add: $(DXSDK_DIR)Include
Show Library files and add: $(DXSDK_DIR)Lib/x86
Show Library files (for x64 targets) and add: $(DXSDK_DIR)Lib/x64
Note
For VS 2010 there is no longer a global VC++ Directories setting. This information should be present in each Visual Studio project file to reference the DirectX SDK.
转载于:https://www.cnblogs.com/no13bus/archive/2013/04/27/3046261.html