Error Codes
The methods used to work with Microsoft® DirectX® X (.x) files can return the following error codes in addition to standard error codes.
- DXFILE_OK
- Command completed successfully.
- DXFILEERR_BADALLOC
- Memory allocation failed.
- DXFILEERR_BADARRAYSIZE
- Array size is invalid.
- DXFILEERR_BADCACHEFILE
- The cache file containing the .x file date is invalid. A cache file contains data retrieved from the network, cached on the hard disk, and retrieved in subsequent requests.
- DXFILEERR_BADDATAREFERENCE
- Data reference is invalid.
- DXFILEERR_BADFILE
- File is invalid.
- DXFILEERR_BADFILECOMPRESSIONTYPE
- File compression type is invalid.
- DXFILEERR_BADFILEFLOATSIZE
- Floating-point size is invalid.
- DXFILEERR_BADFILETYPE
- File is not a DirectX .x file.
- DXFILEERR_BADFILEVERSION
- File version is not valid.
- DXFILEERR_BADINTRINSICS
- Intrinsics are invalid.
- DXFILEERR_BADOBJECT
- Object is invalid.
- DXFILEERR_BADRESOURCE
- Resource is invalid.
- DXFILEERR_BADTYPE
- Object type is invalid.
- DXFILEERR_BADVALUE
- Parameter is invalid.
- DXFILEERR_FILENOTFOUND
- File could not be found.
- DXFILEERR_INTERNALERROR
- Internal error occurred.
- DXFILEERR_NOINTERNET
- Internet connection not found.
- DXFILEERR_NOMOREDATA
- No further data is available.
- DXFILEERR_NOMOREOBJECTS
- All objects have been enumerated.
- DXFILEERR_NOMORESTREAMHANDLES
- No stream handles are available.
- DXFILEERR_NOTDONEYET
- Operation has not completed.
- DXFILEERR_NOTFOUND
- Object could not be found.
- DXFILEERR_PARSEERROR
- File could not be parsed.
- DXFILEERR_RESOURCENOTFOUND
- Resource could not be found.
- DXFILEERR_NOTEMPLATE
- No template available.
- DXFILEERR_URLNOTFOUND
- URL could not be found.