|
-
Jan 5th, 2005, 03:31 PM
#1
Thread Starter
Banned
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.
-
Jan 5th, 2005, 03:35 PM
#2
-
Jan 5th, 2005, 03:37 PM
#3
Thread Starter
Banned
Re: Dx Dd
it returned from blitfast..
VB Code:
Let I = Map.Object(L, X, Y)
If Not I < 0 And Not I > TileObjectCount Then
Let rTile.Left = 0
Let rTile.Top = 0
Let rTile.Right = TileObjects(I).Width
Let rTile.Bottom = TileObjects(I).Height
Debug.Print BufferSurface.ddSurface.BltFast(xDest, yDest, TileObjects(I).ddSurface, rTile, DDBLTFAST_DONOTWAIT Or DDBLTFAST_SRCCOLORKEY)
End If
-
Jan 5th, 2005, 03:39 PM
#4
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.
-
Jan 5th, 2005, 03:41 PM
#5
Thread Starter
Banned
Re: Dx Dd
its an error i need to know what it means
-
Jan 5th, 2005, 03:45 PM
#6
Re: Dx Dd
Do as I said and you will find out....
-
Jan 5th, 2005, 03:47 PM
#7
Thread Starter
Banned
Re: Dx Dd
there is no such thing in VB
-
Jan 5th, 2005, 04:07 PM
#8
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....
-
Jan 5th, 2005, 04:09 PM
#9
Thread Starter
Banned
Re: Dx Dd
there is nowhere i can see what my error code means
-
Jan 5th, 2005, 04:09 PM
#10
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...
-
Jan 5th, 2005, 04:11 PM
#11
Thread Starter
Banned
Re: Dx Dd
did that already
nothing works
-
Jan 5th, 2005, 04:28 PM
#12
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
-
Jan 5th, 2005, 04:30 PM
#13
Thread Starter
Banned
Re: Dx Dd
i looked in the object browser the eroor is NOT defined
-
Jan 5th, 2005, 04:49 PM
#14
Thread Starter
Banned
Re: Dx Dd
a vb error????
it says:
Application-defined or object-defined error
what does that mean
-
Jan 6th, 2005, 05:33 AM
#15
Thread Starter
Banned
-
Jan 6th, 2005, 05:35 AM
#16
Thread Starter
Banned
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|