Results 1 to 6 of 6

Thread: no dynamic arrays with directX variables??

  1. #1

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409

    no dynamic arrays with directX variables??

    VB Code:
    1. Dim surfaces() As DirectDrawSurface7 'all the surfaces

    i get an error that says the "User defined type not definded" but thats not what the problem is because the line before
    VB Code:
    1. Dim Mainsurf As DirectDrawSurface7
    works fine

    does that type just not work with dynamic arrays and vb is confused as to what the error is or is there another problem
    tell me if you need to see more code.

    thanks

  2. #2

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    just some more info that might help the variable is defined in a Global area of a modual

  3. #3
    Addicted Member
    Join Date
    Aug 2002
    Location
    Baltimore, MD
    Posts
    230
    I used exactly the same thing and had no problems.

  4. #4
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Post More Surrounding Code Please
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  5. #5

    Thread Starter
    Hyperactive Member dogfish227's Avatar
    Join Date
    Oct 2002
    Location
    GA
    Posts
    409
    hmm actualy i had fogot to include the DX7 liberary but how vb didnt get an error on the line before it i dont know

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190
    Originally posted by dogfish227
    hmm actualy i had fogot to include the DX7 liberary but how vb didnt get an error on the line before it i dont know
    ...lol...thats a nice "bug"....BTW I have seen VB finding errors in my code before without starting from the top. I have no idea why it does that. But it's nice to hear that you found the "bug"...

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