⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dx_error.c

📁 The source code of Doom legacy for windows
💻 C
📖 第 1 页 / 共 2 页
字号:
            return "Operation could not be carried out because there is no texture mapping hardware present or available.";
        case DDERR_NOTFLIPPABLE:
            return "An attempt has been made to flip a surface that is not flippable.";
        case DDERR_NOTFOUND:
            return "Requested item was not found.";
        case DDERR_NOTLOCKED:
            return "Surface was not locked.  An attempt to unlock a surface that was not locked at all, or by this process, has been attempted.";
        case DDERR_NOTPALETTIZED:
            return "The surface being used is not a palette-based surface.";
        case DDERR_NOVSYNCHW:
            return "Operation could not be carried out because there is no hardware support for vertical blank synchronized operations.";
        case DDERR_NOZBUFFERHW:
            return "Operation could not be carried out because there is no hardware support for zbuffer blitting.";
        case DDERR_NOZOVERLAYHW:
            return "Overlay surfaces could not be z layered based on their BltOrder because the hardware does not support z layering of overlays.";
        case DDERR_OUTOFCAPS:
            return "The hardware needed for the requested operation has already been allocated.";
        case DDERR_OUTOFMEMORY:
            return "There is not enough memory to perform the operation.";
        case DDERR_OUTOFVIDEOMEMORY:
            return "DirectDraw does not have enough memory to perform the operation.";
        case DDERR_OVERLAYCANTCLIP:
            return "The hardware does not support clipped overlays.";
        case DDERR_OVERLAYCOLORKEYONLYONEACTIVE:
            return "Can only have ony color key active at one time for overlays.";
        case DDERR_OVERLAYNOTVISIBLE:
            return "Returned when GetOverlayPosition is called on a hidden overlay.";
        case DDERR_PALETTEBUSY:
            return "Access to this palette is being refused because the palette is already locked by another thread.";
        case DDERR_PRIMARYSURFACEALREADYEXISTS:
            return "This process already has created a primary surface.";
        case DDERR_REGIONTOOSMALL:
            return "Region passed to Clipper::GetClipList is too small.";
        case DDERR_SURFACEALREADYATTACHED:
            return "This surface is already attached to the surface it is being attached to.";
        case DDERR_SURFACEALREADYDEPENDENT:
            return "This surface is already a dependency of the surface it is being made a dependency of.";
        case DDERR_SURFACEBUSY:
            return "Access to this surface is being refused because the surface is already locked by another thread.";
        case DDERR_SURFACEISOBSCURED:
            return "Access to surface refused because the surface is obscured.";
        case DDERR_SURFACELOST:
            return "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.";
        case DDERR_SURFACENOTATTACHED:
            return "The requested surface is not attached.";
        case DDERR_TOOBIGHEIGHT:
            return "Height requested by DirectDraw is too large.";
        case DDERR_TOOBIGSIZE:
            return "Size requested by DirectDraw is too large, but the individual height and width are OK.";
        case DDERR_TOOBIGWIDTH:
            return "Width requested by DirectDraw is too large.";
        case DDERR_UNSUPPORTED:
            return "Function call not supported.";
        case DDERR_UNSUPPORTEDFORMAT:
            return "FOURCC format requested is unsupported by DirectDraw.";
        case DDERR_UNSUPPORTEDMASK:
            return "Bitmask in the pixel format requested is unsupported by DirectDraw.";
        case DDERR_VERTICALBLANKINPROGRESS:
            return "Vertical blank is in progress.";
        case DDERR_WASSTILLDRAWING:
            return "Informs DirectDraw that the previous Blt which is transfering information to or from this Surface is incomplete.";
        case DDERR_WRONGMODE:
            return "This surface can not be restored because it was created in a different mode.";
        case DDERR_XALIGN:
            return "Rectangle provided was not horizontally aligned on required boundary.";
        case D3DERR_BADMAJORVERSION:
            return "D3DERR_BADMAJORVERSION";
        case D3DERR_BADMINORVERSION:
            return "D3DERR_BADMINORVERSION";
        case D3DERR_EXECUTE_LOCKED:
            return "D3DERR_EXECUTE_LOCKED";
        case D3DERR_EXECUTE_NOT_LOCKED:
            return "D3DERR_EXECUTE_NOT_LOCKED";
        case D3DERR_EXECUTE_CREATE_FAILED:
            return "D3DERR_EXECUTE_CREATE_FAILED";
        case D3DERR_EXECUTE_DESTROY_FAILED:
            return "D3DERR_EXECUTE_DESTROY_FAILED";
        case D3DERR_EXECUTE_LOCK_FAILED:
            return "D3DERR_EXECUTE_LOCK_FAILED";
        case D3DERR_EXECUTE_UNLOCK_FAILED:
            return "D3DERR_EXECUTE_UNLOCK_FAILED";
        case D3DERR_EXECUTE_FAILED:
            return "D3DERR_EXECUTE_FAILED";
        case D3DERR_EXECUTE_CLIPPED_FAILED:
            return "D3DERR_EXECUTE_CLIPPED_FAILED";
        case D3DERR_TEXTURE_NO_SUPPORT:
            return "D3DERR_TEXTURE_NO_SUPPORT";
        case D3DERR_TEXTURE_NOT_LOCKED:
            return "D3DERR_TEXTURE_NOT_LOCKED";
        case D3DERR_TEXTURE_LOCKED:
            return "D3DERR_TEXTURELOCKED";
        case D3DERR_TEXTURE_CREATE_FAILED:
            return "D3DERR_TEXTURE_CREATE_FAILED";
        case D3DERR_TEXTURE_DESTROY_FAILED:
            return "D3DERR_TEXTURE_DESTROY_FAILED";
        case D3DERR_TEXTURE_LOCK_FAILED:
            return "D3DERR_TEXTURE_LOCK_FAILED";
        case D3DERR_TEXTURE_UNLOCK_FAILED:
            return "D3DERR_TEXTURE_UNLOCK_FAILED";
        case D3DERR_TEXTURE_LOAD_FAILED:
            return "D3DERR_TEXTURE_LOAD_FAILED";
        case D3DERR_MATRIX_CREATE_FAILED:
            return "D3DERR_MATRIX_CREATE_FAILED";
        case D3DERR_MATRIX_DESTROY_FAILED:
            return "D3DERR_MATRIX_DESTROY_FAILED";
        case D3DERR_MATRIX_SETDATA_FAILED:
            return "D3DERR_MATRIX_SETDATA_FAILED";
        case D3DERR_SETVIEWPORTDATA_FAILED:
            return "D3DERR_SETVIEWPORTDATA_FAILED";
        case D3DERR_MATERIAL_CREATE_FAILED:
            return "D3DERR_MATERIAL_CREATE_FAILED";
        case D3DERR_MATERIAL_DESTROY_FAILED:
            return "D3DERR_MATERIAL_DESTROY_FAILED";
        case D3DERR_MATERIAL_SETDATA_FAILED:
            return "D3DERR_MATERIAL_SETDATA_FAILED";
        case D3DERR_LIGHT_SET_FAILED:
            return "D3DERR_LIGHT_SET_FAILED";
        case D3DRMERR_BADOBJECT:
            return "D3DRMERR_BADOBJECT";
        case D3DRMERR_BADTYPE:
            return "D3DRMERR_BADTYPE";
        case D3DRMERR_BADALLOC:
            return "D3DRMERR_BADALLOC";
        case D3DRMERR_FACEUSED:
            return "D3DRMERR_FACEUSED";
        case D3DRMERR_NOTFOUND:
            return "D3DRMERR_NOTFOUND";
        case D3DRMERR_NOTDONEYET:
            return "D3DRMERR_NOTDONEYET";
        case D3DRMERR_FILENOTFOUND:
            return "The file was not found.";
        case D3DRMERR_BADFILE:
            return "D3DRMERR_BADFILE";
        case D3DRMERR_BADDEVICE:
            return "D3DRMERR_BADDEVICE";
        case D3DRMERR_BADVALUE:
            return "D3DRMERR_BADVALUE";
        case D3DRMERR_BADMAJORVERSION:
            return "D3DRMERR_BADMAJORVERSION";
        case D3DRMERR_BADMINORVERSION:
            return "D3DRMERR_BADMINORVERSION";
        case D3DRMERR_UNABLETOEXECUTE:
            return "D3DRMERR_UNABLETOEXECUTE";

        //
        // DirectSound errors
        //
        case DSERR_ALLOCATED:
            return "The request failed because resources, such as a priority level, were already in use by another caller.";
        case DSERR_ALREADYINITIALIZED:
            return "The object is already initialized.";
        case DSERR_BADFORMAT:
            return "The specified wave format is not supported.";
        case DSERR_BUFFERLOST:
            return "The buffer memory has been lost and must be restored.";
        case DSERR_CONTROLUNAVAIL:
            return "The control (volume, pan, and so forth) requested by the caller is not available.";
        case DSERR_INVALIDCALL:
            return "This function is not valid for the current state of this object.";
        case DSERR_NOAGGREGATION:
            return "The object does not support aggregation.";
        case DSERR_NODRIVER:
            return "No sound driver is available for use.";
        case DSERR_NOINTERFACE:
            return "The requested COM interface is not available.";
        case DSERR_OTHERAPPHASPRIO:
            return "Another application has a higher priority level, preventing this call from succeeding";
        case DSERR_PRIOLEVELNEEDED:
            return "The caller does not have the priority level required for the function to succeed.";
        case DSERR_UNINITIALIZED:
            return "The IDirectSound::Initialize method has not been called or has not been called successfully before other methods were called.";
/* duplicate valuse ?!?
        case DSERR_GENERIC  :
            return "An undetermined error occurred inside the DirectSound subsystem.";  
        case DSERR_INVALIDPARAM :
            return "An invalid parameter was passed to the returning function.";
        case DSERR_OUTOFMEMORY :
             return "The DirectSound subsystem could not allocate sufficient memory to complete the caller's request.";
        case DSERR_UNSUPPORTED :
             return "The function called is not supported at this time.";
*/
        default:
            return "Unrecognized error value.";
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -