C++ Return Values

The methods of the Microsoft® Direct3D® Retained Model (COM) interfaces can return the following values.

D3DRM_OK
No error. Equivalent to DD_OK.
D3DRMERR_BADALLOC
Out of memory.
D3DRMERR_BADCACHEFILE
An X file could not be opened because of a bad cache file. A cache file contains data retrieved from the network, cached on the hard disk, and retrieved in subsequent requests.
D3DRMERR_BADDEVICE
Device is not compatible with renderer.
D3DRMERR_BADFILE
Data file is corrupt.
D3DRMERR_BADMAJORVERSION
Bad DLL major version.
D3DRMERR_BADMINORVERSION
Bad DLL minor version.
D3DRMERR_BADOBJECT
Object expected in argument.
D3DRMERR_BADPMDATA
The data in the .x file is corrupted. The conversion to a progressive mesh succeeded but produced an invalid progressive mesh in the .x file.
D3DRMERR_BADTYPE
Bad argument type passed.
D3DRMERR_BADVALUE
Bad argument value passed.
D3DRMERR_BOXNOTSET
An attempt was made to access a bounding box (for example, with IDirect3DRMFrame3::GetBox) when no bounding box was set on the frame.
D3DRMERR_CLIENTNOTREGISTERED
Client has not been registered. Call IDirect3DRM3::RegisterClient.
D3DRMERR_CONNECTIONLOST
Data connection was lost during a load, clone, or duplicate.
D3DRMERR_ELEMENTINUSE
Element can't be modified or deleted while in use. To empty a submesh, call Empty() against its parent.
D3DRMERR_FACEUSED
Face already used in a mesh.
D3DRMERR_FILENOTFOUND
File cannot be opened.
D3DRMERR_INCOMPATABLEKEY
Specified animation key is incompatible. The key cannot be modified.
D3DRMERR_INVALIDLIBRARY
Specified libary is invalid.
D3DRMERR_LIBRARYNOTFOUND
Specified libary not found.
D3DRMERR_LOADABORTED
Load aborted by user.
D3DRMERR_NOINTERNET
Downloading from a URL failed, or Urlmon.dll could not be found or was corrupt.
D3DRMERR_NOSUCHKEY
Specified animation key does not exist.
D3DRMERR_NOTAGGREGATED
An attempt was made to access IDirect3DRMObject methods through an external visual object, but the external visual was not created with IDirect3DRM::Load or IDirect3DRM::CreateObject, and is not aggregated with IDirect3DRMObject.
D3DRMERR_NOTCREATEDFROMDDS
Specified texture was not created from a DirectDraw Surface.
D3DRMERR_NOTDONEYET
Unimplemented.
D3DRMERR_NOTENOUGHDATA
Not enough data has been loaded to perform the requested operation.
D3DRMERR_NOTFOUND
Object not found in specified place.
D3DRMERR_PENDING
Data required to supply the requested information has not finished loading.
D3DRMERR_REQUESTTOOLARGE
Attempt was made to set a level of detail in a progressive mesh greater than the maximum available.
D3DRMERR_REQUESTTOOSMALL
Attempt was made to set the minimum rendering detail of a progressive mesh smaller than the detail in the base mesh (the minimum for rendering).
D3DRMERR_TEXTUREFORMATNOTFOUND
Texture format could not be found that meets the specified criteria and that the underlying Immediate Mode device supports.
D3DRMERR_UNABLETOEXECUTE
Unable to carry out procedure.
DD_OK
The request completed successfully. Equivalent to D3DRM_OK.
DDERR_INVALIDOBJECT
Received pointer that was an invalid object.
DDERR_INVALIDPARAMS
One or more of the parameters passed to the method are incorrect.
DDERR_NOTFOUND
The requested item was not found.
DDERR_NOTINITIALIZED
An attempt was made to call an interface method of an object created by CoCreateInstance before the object was initialized.
DDERR_OUTOFMEMORY
DirectDraw does not have enough memory to perform the operation.

Top of Page Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.