Microsoft DirectX 9.0 SDK (April 2005)是否可以在Win 2003 中作开发
我是把Microsoft DirectX 9.0 SDK (April 2005)安装在我win2003 sp1 的电脑上,但示例程序(C#代码)运行到
device = new Device(0, DeviceType.Hardware, this, CreateFlags.SoftwareVertexProcessing, presentParams)出现应用程序错误,不知何解
帮助文件里是这么说的:
Run-Time Requirements
DirectX 9.0 can be used in the Microsoft Windows 98, Windows Millennium Edition (Windows Me), Windows 2000, and Windows XP environments.
Requirements
The minimum required operating system that will support the managed DirectX 9.0 runtime is Microsoft Windows 98. However, the minimum operating system that will run the samples and tools in the DirectX 9.0 SDK is Windows 2000.
因为Win2003默认已经安装了DirectX 9.0,我远行其他的例子程序,在Win2003 中都没有问题,就是运行教程1时(凡是涉及到上面那行代码的都不行),不知道为什么。
昨天在虚拟机XP系统中,运行教程1也是不行,真的很奇怪。
我的一样的Windows2003+sp1 + DXSDK9 October
1.桌面-->右键--》属性--》高级--》设置---》疑难解答---》硬件加速---》完全
2.开始--》运行——>dxdiag---》显示---》DirectDraw加速--》启用
即可