PDA

Click to See Complete Forum and Search --> : Help me!!!!!!!! VB5 and DirectX again.


Terrell
Aug 4th, 2000, 08:37 PM
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.

Sastraxi
Aug 4th, 2000, 10:01 PM
It's http://www.cason.addr.com/
and the appropriate link leads to:
http://members.dencity.com/dx4vb/tutorials/ddrawtheo.html

parksie
Aug 5th, 2000, 03:48 AM
In VB, go Project->References and select DirectX 7 for Visual Basic (or something like that). The file is dx7vb.dll.