Results 1 to 5 of 5

Thread: DDraw get's :mad: Is this a MS joke?

  1. #1

    Thread Starter
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Ok, what i'm doing is pretty simple, I blitt a surface on the back buffer, but I get a totally unrecognizable error!!!! -2147024809 Have you ever heard of that -2147024809 !!! And this only happens with this surface array!

    In my code:
    Code:
        A = Back.BltFast(Mouse.x - 64, Mouse.y - 16, tlTerrain(1, 1), CreateRect(0, 0, 0, 0), DDBLTFAST_WAIT Or DDBLTFAST_SRCCOLORKEY)
        Select Case A
            Case 0
            Case DDERR_EXCEPTION
            Case DDERR_GENERIC
            Case DDERR_INVALIDOBJECT
            Case DDERR_INVALIDPARAMS
            Case DDERR_INVALIDRECT
            Case DDERR_NOBLTHW
            Case DDERR_SURFACEBUSY
            Case DDERR_SURFACELOST
            Case DDERR_UNSUPPORTED
            Case DDERR_WASSTILLDRAWING
            Case Else
                MsgBox A 'shows -2147024809
        End Select

    From the DirectX Help:
    Code:
    Error Codes
    If the method fails, it can return one of the following: 
    
    	DDERR_EXCEPTION  
    	DDERR_GENERIC  
    	DDERR_INVALIDOBJECT  
    	DDERR_INVALIDPARAMS  
    	DDERR_INVALIDRECT  
    	DDERR_NOBLTHW  
    	DDERR_SURFACEBUSY  
    	DDERR_SURFACELOST  
    	DDERR_UNSUPPORTED  
    	DDERR_WASSTILLDRAWING
    Code:
    Error Codes
    Errors are represented by negative values and cannot be combined. This table lists the values that can be returned by all methods of the DirectDraw7, DirectDrawSurface7, DirectDrawPalette, and DirectDrawClipper objects. For a list of the error codes that each method can return, see the method description.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  2. #2
    Fanatic Member
    Join Date
    Jan 2003
    Posts
    1,004
    Have you figured out what it is yet? It sounds quite interesting.
    "Can't" and "shouldn't" are two totally separate things.

    All questions should be answered. All answers should be true. That is why I post.

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    maybe these aren't predefined and you have to define them:

    DDERR_EXCEPTION
    DDERR_GENERIC
    DDERR_INVALIDOBJECT
    DDERR_INVALIDPARAMS
    DDERR_INVALIDRECT
    DDERR_NOBLTHW
    DDERR_SURFACEBUSY
    DDERR_SURFACELOST
    DDERR_UNSUPPORTED
    DDERR_WASSTILLDRAWING
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  4. #4
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176
    Try sizing your Rect properly!!!!

    Yes they are predefined

    Have you got a clipper???
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Probably not your problem, but Managed DirectDraw from DX9 throws an exception whenever you try to blit something that touches pixel 0,0 on the back buffer.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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