Dmi*_*ruk 1 c# directx mdx managed-directx
我已经将一个完美的MDX代码片段带到了Windows 2008R2(安装了所有DX驱动程序),并且得到了以下相当奇怪的错误.知道这可能是什么意思吗?
System.BadImageFormatException: Could not load file or assembly 'Microsoft.DirectX.Direct3D.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
File name: 'Microsoft.DirectX.Direct3D.dll'
at Nesteruk.MdxConsole.Console..ctor(Boolean fullScreen, Int32 charWidth, Int32 charHeight, Int32 windowWidth, Int32 windowHeight)
at Nesteruk.MdxConsole.Console..ctor(Viewport viewport) in c:\Users\Dmitri.EUPHORIA\Projects\Open-Source\MdxConsole\MdxConsole\Console.cs:line 67
at Nesteruk.MdxConsole.Console.NewConsole(Int32 width, Int32 height) in c:\Users\Dmitri.EUPHORIA\Projects\Open-Source\MdxConsole\MdxConsole\Console.cs:line 471
at MdxConsoleDemo.Program.Everything() in c:\Users\Dmitri.EUPHORIA\Projects\Open-Source\MdxConsole\MdxConsoleDemo\Program.cs:line 51
at MdxConsoleDemo.Program.Main() in c:\Users\Dmitri.EUPHORIA\Projects\Open-Source\MdxConsole\MdxConsoleDemo\Program.cs:line 30
Run Code Online (Sandbox Code Playgroud)
你的操作系统是64位吗?如果是,请在项目属性 - >构建选项卡中将平台目标设置为x86.MDX仅为32位,试图将其加载到64位进程中BadImageFormatException.
| 归档时间: |
|
| 查看次数: |
4868 次 |
| 最近记录: |