|
-
Oct 27th, 2002, 04:25 PM
#7
Thread Starter
New Member
DirectX4VB Tutorial
I am currently undertaking DirextX8: DirectX Graphics: Getting Started tutorial from directx4vb.com (recommended from vbworld.com). As this tutorial is written in VB6, I have had to do some translation.
Most is ok, but I am hitting a runtime error in the Initialise function, particularly the line
Set D3DDevice = D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, FrmMain.Hwnd, _
D3DCREATE_SOFTWARE_VERTEXPROCESSING, D3DWindow)
Which I translated to VB.Net as
D3DDevice = D3D.CreateDevice(DxVBLibA.CONST_D3DCONST.D3DADAPTER_DEFAULT, DxVBLibA.CONST_D3DDEVTYPE.D3DDEVTYPE_HAL, Nothing, DxVBLibA.CONST_D3DCREATEFLAGS.D3DCREATE_SOFTWARE_VERTEXPROCESSING, D3DWindow)
The error text is
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Laines 3D Display.exe
Additional information: Exception from HRESULT: 0x8876086C.
Am I missing something in the .Net translation? Has anyone submitted .Net translations to any of these basic graphics tutorials? (I feel I can translate ok, it's just tedious)
Also, are there existing OCX controls that utilize D3D, something I could incorporate directly to my project without having to manually code the whole thing?
btw, these tutorials look like the best on the net!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|