Results 1 to 3 of 3

Thread: Help me!!!!!!!! VB5 and DirectX again.

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2000
    Posts
    19

    Question

    On my last post I asked if I can use VB4 with DirectX. My bad, I meant to write VB5 on the message. I was wondering how you can "turn on" the DirectX within VB5? Everytime I put the following code:
    -----
    Public DirectX As DirectX7
    Public DD As DirectDraw7
    Public D3D As Direct3D7
    Public EnumDevice As Direct3DEnumDevices
    Public EnumDD As DirectDrawEnum
    Public Primary As DirectDrawSurface7
    Public BackBuffer As DirectDrawSurface7
    Public D3DSurface As DirectDrawSurface7
    Public Device As Direct3DDevice7
    Public Viewport As D3DVIEWPORT7
    Public ZBuffer As DirectDrawSurface7
    -------

    I get the error message stating:
    --------
    Compiler Error
    User-defined not defined.
    ------


    I'm at a total lost. I'm still kind of new but getting into the intermediate side. Tell me how to initiate DirectX functions within VB!!!! Also if you know any good tutorials, it would be greatly appreciated. Thank you for taking your time to read this.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    In VB, go Project->References and select DirectX 7 for Visual Basic (or something like that). The file is dx7vb.dll.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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