DirectX Win7 X64问题 [英] DirectX Win7 X64 problem

查看:117
本文介绍了DirectX Win7 X64问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用DirectX开发某些音频程序.我一直在XP上开发它们,但惊讶地发现程序无法在Win7 X64下运行.我在两个OS上都安装了DirectX SDK June 2010.为了找出问题,我创建了这段简单的代码.

I have been working on some audio programs using DirectX. I have been developing them on XP and was surprised to find that the programs would not run under Win7 X64. I have the DirectX SDK June 2010 installed on both OS''s. In order to isolate the problem I created this simple piece of code.

namespace Win7AudioTest
{
    public partial class Form1 : Form
    {
        // This code compiles and runs under XP with Vis2008
        // it compiles under Win7 with Vis2008 (Build Succeeded)
        // but will not run unless the next line is commented out.

        public Audio _audio = null;

        public Form1()
        {
            InitializeComponent();
        }
    }
}



任何建议将不胜感激.



Any suggestions would be appreciated.

推荐答案

我想您正在使用托管DirectX(Microsoft.DirectX名称空间).微软不再支持它,并且不能与x64一起使用(XNA也不行).如果要在x64中使用托管DirectX,则可以考虑使用SlimDX.
I guess you are using managed DirectX (Microsoft.DirectX namespaces). Its no longer supported by microsoft and doesnt work with x64 (neither does XNA). If you want to use managed DirectX in x64 you may think about SlimDX.


Yanick和Luc Pattyn

你们之间的非常感谢,您已经解决了我的问题.我以前从没注意到CPU设置.我重新编译了32bit,问题解决了.

非常感谢
Yanick and Luc Pattyn

Many thanks between you folks you have solved my problem. I had never noticed the CPU setting before. I recompiled 32bit and problem was solved.

Many Thanks


这篇关于DirectX Win7 X64问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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