what does -2147024809 mean in direct draw? i looked google cant find it
Printable View
what does -2147024809 mean in direct draw? i looked google cant find it
Where did you get that?
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
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.
its an error i need to know what it means
Do as I said and you will find out....;)
there is no such thing in VB
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....
there is nowhere i can see what my error code means
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...;)
did that already
nothing works
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
i looked in the object browser the eroor is NOT defined
a vb error????
it says:
Application-defined or object-defined error
what does that mean
help
i found out... i dint set the colorkey and use the colorkey flag in the drawing routine