Return Values The methods of the Microsoft? Direct3D? Retained Model (COM) interfaces can return the following values. (D3D保留模式返回值) D3DRM_OK No error. Equivalent to DD_OK. (无错. 同DD_OK) D3DRMERR_BADALLOC Out of memory. (内存益出) D3DRMERR_BADDEVICE Device is not compatible with renderer. (设备与绘制通道不兼容) D3DRMERR_BADFILE Data file is corrupt. (数据文件损坏) D3DRMERR_BADMAJORVERSION Bad DLL major version. (错误的文件主版本) D3DRMERR_BADMAJORVERSION 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. (.X文件损坏.或.X文件失效)(译者按:X文件是一种D3D使用的3D构件文件) 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_ENTRYINUSE Vertex or normal entries are currently in use by a face and cannot be deleted. (顶点或入口正在被一个表面使用无法删除) D3DRMERR_FACEUSED Face already used in a mesh. (表面已被使用) D3DRMERR_FILENOTFOUND File cannot be opened. (文件未找到) D3DRMERR_INCOMPATIBLEKEY Specified animation key is incompatible. The key cannot be modified. (指定的键不兼容.无法被修改) D3DRMERR_INVALIDLIBRARY Specified libary is invalid. (无效的指定库) D3DRMERR_INVALIDOBJECT Method received a pointer to an object that is invalid. (对象失效) D3DRMERR_INVALIDPARAMS One of the parameters passed to the method is invalid. (传递参数无效) D3DRMERR_LIBRARYNOTFOUND Specified libary not found. (指定库未找到) D3DRMERR_LOADABORTED Load aborted by user. (使用者中断装载) D3DRMERR_NOSUCHKEY Specified animation key does not exist. (指定的键未创建) D3DRMERR_NOTCREATEDFROMDDS Specified texture was not created from a DirectDraw Surface. (指定的贴图未在DirectDraw平面中创建) 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_OUTOFRANGE Specified value is out of range. (指定值超出范围) 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. (请求成功.等同于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. (没有足够的内存) Return Values Errors are represented by negative values and cannot be combined. This table lists the values that can be returned by all Direct3D Immediate Mode methods. See the individual method descriptions for lists of the values each can return. D3D_OK D3DERR_BADMAJORVERSION D3DERR_BADMINORVERSION D3DERR_COLORKEYATTACHED D3DERR_CONFLICTINGTEXTUREFILTER D3DERR_CONFLICTINGTEXTUREPALETTE D3DERR_CONFLICTINGRENDERSTATE D3DERR_DEVICEAGGREGATED (new for DirectX 5.0) D3DERR_EXECUTE_CLIPPED_FAILED D3DERR_EXECUTE_CREATE_FAILED D3DERR_EXECUTE_DESTROY_FAILED D3DERR_EXECUTE_FAILED D3DERR_EXECUTE_LOCK_FAILED D3DERR_EXECUTE_LOCKED D3DERR_EXECUTE_NOT_LOCKED D3DERR_EXECUTE_UNLOCK_FAILED D3DERR_INITFAILED (new for DirectX 5.0) D3DERR_INBEGIN (new for DirectX 5.0) D3DERR_INVALID_DEVICE (new for DirectX 5.0) D3DERR_INVALIDCURRENTVIEWPORT (new for DirectX 5.0) D3DERR_INVALIDMATRIX D3DERR_INVALIDPALETTE(new for DirectX 5.0) D3DERR_INVALIDPRIMITIVETYPE (new for DirectX 5.0) D3DERR_INVALIDRAMPTEXTURE (new for DirectX 5.0) D3DERR_INVALIDVERTEXFORMAT (new for DirectX 6.0) D3DERR_INVALIDVERTEXTYPE (new for DirectX 5.0) D3DERR_LIGHT_SET_FAILED D3DERR_LIGHTHASVIEWPORT (new for DirectX 5.0) D3DERR_LIGHTNOTINTHISVIEWPORT (new for DirectX 5.0) D3DERR_MATERIAL_CREATE_FAILED D3DERR_MATERIAL_DESTROY_FAILED D3DERR_MATERIAL_GETDATA_FAILED D3DERR_MATERIAL_SETDATA_FAILED D3DERR_MATRIX_CREATE_FAILED D3DERR_MATRIX_DESTROY_FAILED D3DERR_MATRIX_GETDATA_FAILED D3DERR_MATRIX_SETDATA_FAILED D3DERR_NOCURRENTVIEWPORT (new for DirectX 5.0) D3DERR_NOTINBEGIN (new for DirectX 5.0) D3DERR_NOVIEWPORTS (new for DirectX 5.0) D3DERR_SCENE_BEGIN_FAILED D3DERR_SCENE_END_FAILED D3DERR_SCENE_IN_SCENE D3DERR_SCENE_NOT_IN_SCENE D3DERR_SETVIEWPORTDATA_FAILED D3DERR_STENCILBUFFER_NOTPRESENT D3DERR_SURFACENOTINVIDMEM (new for DirectX 5.0) D3DERR_TEXTURE_BADSIZE (new for DirectX 5.0) D3DERR_TEXTURE_CREATE_FAILED D3DERR_TEXTURE_DESTROY_FAILED D3DERR_TEXTURE_GETSURF_FAILED D3DERR_TEXTURE_LOAD_FAILED D3DERR_TEXTURE_LOCK_FAILED D3DERR_TEXTURE_LOCKED D3DERR_TEXTURE_NO_SUPPORT D3DERR_TEXTURE_NOT_LOCKED D3DERR_TEXTURE_SWAP_FAILED D3DERR_TEXTURE_UNLOCK_FAILED D3DERR_TOOMANYOPERATIONS D3DERR_TOOMANYPRIMITIVES D3DERR_UNSUPPORTEDALPHAARG D3DERR_UNSUPPORTEDALPHAOPERATION D3DERR_UNSUPPORTEDCOLORARG D3DERR_UNSUPPORTEDCOLOROPERATION D3DERR_UNSUPPORTEDFACTORVALUE D3DERR_UNSUPPORTEDTEXTUREFILTER D3DERR_VBUF_CREATE_FAILED D3DERR_VERTEXBUFFERLOCKED D3DERR_VERTEXBUFFEROPTIMIZED D3DERR_VIEWPORTDATANOTSET (new for DirectX 5.0) D3DERR_VIEWPORTHASNODEVICE (new for DirectX 5.0) D3DERR_WRONGTEXTUREFORMAT D3DERR_ZBUFF_NEEDS_SYSTEMMEMORY (new for DirectX 5.0) D3DERR_ZBUFF_NEEDS_VIDEOMEMORY (new for DirectX 5.0) D3DERR_ZBUFFER_NOTPRESENT Lucker 1998.12.9 E-Mail Fred_Cai@Kali.Com.cn