PDA

Click to See Complete Forum and Search --> : How to DD?


Arie
Sep 13th, 2000, 02:18 PM
Hi, Guys!

As you see I'm a begginer.
so I have some questions for you:
How do I exactly use the directx in VB 6.0?
I tried to put like this:
code
Dim dx As DirectX7
Dim x As Integer
x = dx.GetFreeMem 'There is such function, I didn't invented it.
MsgBox(x)
' It types: Argument optional or something

Thank you anyway,
Arie.

Visit: http://www.nip.to/camel2000

drewski
Sep 13th, 2000, 11:56 PM
guy, its not quite that easy. you can jsut get dx and then just try to use it. you need to get some books or find some tutorials online. try DX4VB for example or try the stuff the. source that came with dx7. dont just get it and expect it to work. i'm very limited in my knowledge with dx but i do know that is gets easy AFTER you learn the stuff. just get surfing the net for some tutorials.

heres the link to DX4VB: http://64.23.12.52/


it's gonna take some work to get going.

good luck

Warmaster199
Sep 14th, 2000, 03:38 PM
One posible reason that it won't work is that you can't just dim and object or module from an outside-project source. You have to have:

Public DX As New DirectX7

Note the "New DirectX7" statement. You have to make the object first. You do this by making a "New" object. Now, that should stop another error that you would get in your project saying, "Object with block variable not set."

That should help a bit.