Results 1 to 3 of 3

Thread: How to DD?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Unhappy

    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

  2. #2
    Addicted Member drewski's Avatar
    Join Date
    Feb 2000
    Location
    WA
    Posts
    242

    it doesnt work like that

    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
    I see said the blind man as he spat into the wind.

    It all comes back to me now!

    A.D.T.'s VB

  3. #3
    Hyperactive Member Warmaster199's Avatar
    Join Date
    Aug 2000
    Location
    Canada
    Posts
    306
    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:
    Code:
    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.
    Designer/Programmer of the Comtech Operating System(CTOS)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width