learning directx8

amurrow
03-06-2002, 05:03 PM
i'm trying to learn directx8 using visual basic and every sample i try gives me an error. i downloaded and installed the directx8.1 SDK form microsoft.com.

here is the error

Set g_D3DDevice = g_D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, d3dpp)


when it sets g_D3DDevice it doesnt work. it sets it to "nothing"

can anyone help me?

ardman
03-07-2002, 05:59 AM
I cant see an error with that. Are you sure that you have stepped past the line so that it actually creates the device?

amurrow
03-07-2002, 06:46 AM
yes, i am positive...

do i need a better graphics card or something?...
i've had a problem with other .exe's that wont run because of my graphics card....

Flyguy
03-07-2002, 07:59 AM
You use this "D3DDEVTYPE_HAL" but does your card support it?
What kind of 3D accelerator card do you have?

amurrow
03-07-2002, 11:14 AM
what ever was in my compaq when when my parents bought it...i dont really know

Waxycat
03-07-2002, 12:50 PM
That's bad dood! You should know what your video card is. It's a very important piece of hardware, and you should find out, because it's often necissary information.

Flyguy
03-07-2002, 03:07 PM
Before just calling this code:

Set g_D3DDevice = g_D3D.CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, d3dpp)

You should first verify whether the video card is capable of using these parameters.

Squirm
03-07-2002, 03:28 PM
Learn about enumeration (http://64.23.12.52//Tutorials/DirectX8/GR_Lesson02.asp)

:)

Kitaiko
03-11-2002, 03:56 AM
That site is really good, I made my first program using that tutorial

amurrow
03-11-2002, 09:44 AM
thanks guys

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum