|
-
Aug 4th, 2000, 08:37 PM
#1
Thread Starter
Junior Member
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.
-
Aug 4th, 2000, 10:01 PM
#2
Good Ol' Platypus
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Aug 5th, 2000, 03:48 AM
#3
Monday Morning Lunatic
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|