New DirectX Refrence problem...

Cirdan
06-15-2004, 02:47 PM
Okay, befor I start, I did read the recent dx refrence post, but my error is different...


I'm following this tutoria to refrence dx7
http://216.5.163.53/DirectX4VB/Tutorials/DirectX7/DX_Start.asp

I do it just fine, The dll is found, just when I hit okay, it still can reconize this code...


Dim dx As New DirectX7

It says DirectX7 is not defind. I go back to the refrence screen, but it just resets. any Ideas?

Iceplug
06-15-2004, 04:58 PM
Are you using DirectX7 within VB.NET?
Do you see DxVBLib in the References subheader in the Solution Explorer?

Cirdan
06-15-2004, 06:38 PM
1) Yes, I"m using VB.net 2003 Standard

2) Yes, but it still doesn't reconize it

I see dxVBLib and dxVBLiba

Iceplug
06-15-2004, 06:48 PM
Did you import it into your file?
Otherwise, you'd probably have to write:
Dim DX As DXVBLib.DirectX7
Then...
DX = New DXVBLib.DirectX7
:).

Cirdan
06-15-2004, 07:26 PM
I just got vb yseterday, so "Im not sure how to import stuff, if you could tell me how, or point me to a tutorial, that would be good, thnx

Iceplug
06-15-2004, 07:35 PM
Importing just allows you to access DirectX7 directly like that:
You can use:

Imports DxVBLib
'then
Public Class etc.... ... ...
Dim DX As DirectX7

or

Public Class etc.... ...
Dim DX As DxVBLib.DirectX7


It simply allows you to access members in the DxVBLib library without having to specify DxVBLib. :)

Cirdan
06-15-2004, 07:54 PM
thanks! It worked!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum