我从这里下载并使用directx(dxsdk 2010年6月): https://www.microsoft.com/en-us/download/details.aspx?id=6812
PC是Windows 7,包含所有最新更新和directX 11。
应用程序在此行崩溃:
Dim d3dpp As New PresentParameters()
尝试抓住什么都没有给我。 VS2015本身并没有给我什么。只是使用CPU而且从不显示表单。有任何想法吗?这是代码:
Imports Microsoft.DirectX
Imports Microsoft.DirectX.Direct3D
Imports Microsoft.DirectX.DirectInput
Imports System.Windows
Public Class Form2
Dim RunOnce As Boolean = True
Dim gamerun As Boolean = True
Dim bkgColor As Color = Color.Black
Dim d3ddev As Direct3D.Device
'Dim d3dpp As New PresentParameters
Dim drawFont As Direct3D.Font
Dim x As Int32
Dim wait As Int32
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Try
Dim d3dpp As New PresentParameters()
Catch ex As Exception
Dim strbreakpoint As String = "ASDF"
End Try
End Sub
End Class