I'm making a little game in DirectX.
I have made a UDT:
Type Surface
Surface As DirectDrawSurface7
DDSD As DDSURFACEDESC2
DestRect As RECT
ScrRect As RECT
Transparend As Boolean
Collision As Boolean
Height As Integer
Width As Integer
X As Integer
Y As Integer
CKey As DDCOLORKEY
End Type
I'v declared it
Dim Background As Surface
Now, if I try to make it as Surface
Set Background.Surface = dd.CreateSurfaceFromFile("C:\MainMenu.bmp", Background.DDSD)
I get an error!!!!!!!!!!!!
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Like so:
Object variable or With block variable not set.
I don't know what's it.
how can help me??????




Reply With Quote