CatholicSchGirl
09-03-2004, 03:06 AM
All,
I just recently downloaded the Microsoft DirectX 9.0 SDK (Summer 2004) and installed it over the previous version Microsoft DirectX 9.0 SDK
Before the update, "C:\WINDOWS\Microsoft.NET\Managed DirectX" contained the following folders:
v9.00.0900
v9.00.1126
Of which only v9.00.0900 worked.
After the update, "C:\WINDOWS\Microsoft.NET\Managed DirectX" contained the following folders:
v9.00.0900
v9.00.1126
v9.02.2904
Before the update, all of my Direct3D applications referenced the DirectX dlls in the v9.00.0900 folder and worked just fine. And all of the samples worked just fine.
After the update, I assumed that I should now reference the DirectX dlls in the v9.02.2904 folders. Of course once I did that, nothing works at all. Also, none of the Microsoft samples work either. They conveniently give me the error message "Could not initialize Direct3d"
I have narrowed the problem down to the create statement. Even an app this simple fails:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyPresentationParameters As Microsoft.DirectX.Direct3D.PresentParameters
Dim MyDevice As Microsoft.DirectX.Direct3D.Device
Try
MyPresentationParameters = New Microsoft.DirectX.Direct3D.PresentParameters()
MyPresentationParameters.Windowed = True
MyPresentationParameters.SwapEffect = SwapEffect.Discard
MyDevice = New Microsoft.DirectX.Direct3D.Device(0, DeviceType.Hardware, Me, CreateFlags.HardwareVertexProcessing, MyPresentationParameters)
Catch d3dExc As Microsoft.DirectX.DirectXException
Debug.WriteLine(d3dExc.ErrorString & " - Form1_Load, Device Creation")
MyDevice = Nothing
Catch exc As Exception
MyDevice = Nothing
Debug.WriteLine(exc.Message & " - Form1_Load, Device Creation")
Finally
If Not MyDevice Is Nothing Then
MyDevice.Dispose()
MyDevice = Nothing
End If
End Try
End Sub
The DX ERROR Code is D3DERR_INVALIDCALL.
If I switch back to referencing the DX dlls from the v9.00.0900 folder, everything works.
(I have read the other post about problems with the DX9 SDK Installs)
Anyone have any ideas? Very frustrated.
(By the way, my OS is XP home and im developing with .NET Studio 2002)
I just recently downloaded the Microsoft DirectX 9.0 SDK (Summer 2004) and installed it over the previous version Microsoft DirectX 9.0 SDK
Before the update, "C:\WINDOWS\Microsoft.NET\Managed DirectX" contained the following folders:
v9.00.0900
v9.00.1126
Of which only v9.00.0900 worked.
After the update, "C:\WINDOWS\Microsoft.NET\Managed DirectX" contained the following folders:
v9.00.0900
v9.00.1126
v9.02.2904
Before the update, all of my Direct3D applications referenced the DirectX dlls in the v9.00.0900 folder and worked just fine. And all of the samples worked just fine.
After the update, I assumed that I should now reference the DirectX dlls in the v9.02.2904 folders. Of course once I did that, nothing works at all. Also, none of the Microsoft samples work either. They conveniently give me the error message "Could not initialize Direct3d"
I have narrowed the problem down to the create statement. Even an app this simple fails:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyPresentationParameters As Microsoft.DirectX.Direct3D.PresentParameters
Dim MyDevice As Microsoft.DirectX.Direct3D.Device
Try
MyPresentationParameters = New Microsoft.DirectX.Direct3D.PresentParameters()
MyPresentationParameters.Windowed = True
MyPresentationParameters.SwapEffect = SwapEffect.Discard
MyDevice = New Microsoft.DirectX.Direct3D.Device(0, DeviceType.Hardware, Me, CreateFlags.HardwareVertexProcessing, MyPresentationParameters)
Catch d3dExc As Microsoft.DirectX.DirectXException
Debug.WriteLine(d3dExc.ErrorString & " - Form1_Load, Device Creation")
MyDevice = Nothing
Catch exc As Exception
MyDevice = Nothing
Debug.WriteLine(exc.Message & " - Form1_Load, Device Creation")
Finally
If Not MyDevice Is Nothing Then
MyDevice.Dispose()
MyDevice = Nothing
End If
End Try
End Sub
The DX ERROR Code is D3DERR_INVALIDCALL.
If I switch back to referencing the DX dlls from the v9.00.0900 folder, everything works.
(I have read the other post about problems with the DX9 SDK Installs)
Anyone have any ideas? Very frustrated.
(By the way, my OS is XP home and im developing with .NET Studio 2002)