Results 1 to 8 of 8

Thread: Errorr!!!!!

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Location
    Holland
    Posts
    36

    Errorr!!!!!

    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??????
    Last edited by StevenVeer; Mar 18th, 2003 at 07:34 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width