Results 1 to 16 of 16

Thread: Dx Dd

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Resolved Dx Dd

    what does -2147024809 mean in direct draw? i looked google cant find it
    Last edited by nareth; Jan 6th, 2005 at 05:36 AM.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    Where did you get that?

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    it returned from blitfast..

    VB Code:
    1. Let I = Map.Object(L, X, Y)
    2.                     If Not I < 0 And Not I > TileObjectCount Then
    3.                         Let rTile.Left = 0
    4.                         Let rTile.Top = 0
    5.                         Let rTile.Right = TileObjects(I).Width
    6.                         Let rTile.Bottom = TileObjects(I).Height
    7.                        
    8.                         Debug.Print BufferSurface.ddSurface.BltFast(xDest, yDest, TileObjects(I).ddSurface, rTile, DDBLTFAST_DONOTWAIT Or DDBLTFAST_SRCCOLORKEY)
    9.                     End If

  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    That one returns HRESULT. Do that, and add a break point on the next line, then check the return value. I can't remember what it is defind as.

  5. #5

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    its an error i need to know what it means

  6. #6
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    Do as I said and you will find out....

  7. #7

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    there is no such thing in VB

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    Now I start to remember why I left VB......well it can only be these values:


    DD_OK The method succeeded.
    DDERR_INVALIDPARAMS One or more of the input parameters is invalid.
    DDERR_SURFACELOST Access to this surface is being refused because the surface memory is gone. The DirectDrawSurface object representing this surface should have Restore called on it.
    DDERR_SURFACEBUSY Access to this surface is being refused because the surface is already locked by another thread.
    DDERR_INVALIDOBJECT DirectDraw received a pointer that was an invalid DirectDraw object.
    DDERR_INVALIDRECT Rectangle provided was invalid.
    DDERR_EXCEPTION An exception was encountered while performing the requested operation.
    DDERR_UNSUPPORTED Action not supported.
    DDERR_GENERIC Generic failure.
    DDERR_NOBLTHW No blitter hardware present.



    I guess you just have to do a comare then....

  9. #9

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    there is nowhere i can see what my error code means

  10. #10
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    BTW I bet it is because the GPU is bussy. Because you are using DDBLTFAST_DONOTWAIT. BltFast tends to do that to you if you don't use the DDBLTFAST_WAIT flag...

  11. #11

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    did that already
    nothing works

  12. #12
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Dx Dd

    It has to I don't belive you........well, you can always make your own error look up function, or you can use Lucky's error look up module:

    http://www.rookscape.com/vbgaming/DXError.zip

  13. #13

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    i looked in the object browser the eroor is NOT defined

  14. #14

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    a vb error????

    it says:
    Application-defined or object-defined error

    what does that mean

  15. #15

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    help

  16. #16

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: Dx Dd

    i found out... i dint set the colorkey and use the colorkey flag in the drawing routine

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