I'm converting my game from BitBlt to Direct Draw. I've tried to incorporate a DX example into my form, but I get an error... "Compile error: User-defined type not defined.". The top of my form's code looks like this :

Code:
Option Explicit

Dim dx As New DirectX7
Dim dd As DirectDraw7
...and the error points to 'dx as New DirectX7'.

What's wrong here? I can't figure this out...

Thanks,

-Git