Platform SDK: DirectX |
The DirectDrawSurface7.GetDirectDraw method retrieves the DirectDraw object that was used to create the surface.
object.GetDirectDraw() As DirectDraw7
If the method succeeds, it returns a DirectDraw7 object.
If the method fails, itr raises an error, and Err.Number can be set to one of the following values:
DDERR_INVALIDOBJECT |
DDERR_INVALIDPARAMS |
The object returned by a successful function call must be assigned to a DirectDraw7 object variable. For example:
Dim DDrawObject as DirectDraw7 Set DDrawObject = object.GetDDInterface()