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??????
Last edited by StevenVeer; Mar 18th, 2003 at 07:34 AM.
But you have to make one! The DDSD property only returns a reference to the ddsurfacedesc used to create it! In this, you are trying to get the surfacedesc from the same DirectDrawSurface you are trying to create, and it fails because it has not yet been created.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
(Just a heads-up)