如此简单的D3D程序,怎么会执行不过去?
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using Microsoft.WindowsMobile.DirectX;using Microsoft.WindowsMobile.DirectX.Direct3D;namespace MyFirstDX{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { PresentParameters p = new PresentParameters(); p.Windowed = false; p.SwapEffect = SwapEffect.Discard; Device d = new Device(0, DeviceType.Default,this, CreateFlags.None, p);//这句报错了。 /// } }}