亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dxerr.c

?? 游戲類程序源代碼---WinDoom 3D源程序.zip
?? C
?? 第 1 頁 / 共 2 頁
字號:
/////////////////////////////////////////////////////////////////////////////////////
// DirectX Includes...
/////////////////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <ddraw.h>
#include <dinput.h>
#include <dsound.h>

void WriteDebug(char *);

void DS_Error( HRESULT hresult, char *msg )
   {
    char msgtext[128];
    char errmsg[128];
    switch(hresult)
       {
        case DS_OK:
             strcpy(errmsg,"The request completed successfully.");
             break;

        case DSERR_ALLOCATED:
             strcpy(errmsg,"The request failed because resources, such as a priority level, were already in use by another caller.");
             break;

        case DSERR_ALREADYINITIALIZED:
             strcpy(errmsg,"The object is already initialized.");
             break;

        case DSERR_BADFORMAT:
             strcpy(errmsg,"The specified wave format is not supported.");
             break;

        case DSERR_BUFFERLOST:
             strcpy(errmsg,"The buffer memory has been lost and must be restored.");
             break;

        case DSERR_CONTROLUNAVAIL:
             strcpy(errmsg,"The control (volume, pan, and so forth) requested by the caller is not available.");
             break;

        case DSERR_GENERIC:
             strcpy(errmsg,"An undetermined error occurred inside the DirectSound subsystem.");
             break;

        case DSERR_INVALIDCALL:
             strcpy(errmsg,"This function is not valid for the current state of this object.");
             break;

        case DSERR_INVALIDPARAM:
             strcpy(errmsg,"An invalid parameter was passed to the returning function.");
             break;

        case DSERR_NOAGGREGATION:
             strcpy(errmsg,"The object does not support aggregation.");
             break;

        case DSERR_NODRIVER:
             strcpy(errmsg,"No sound driver is available for use.");
             break;

        case DSERR_OTHERAPPHASPRIO:
             strcpy(errmsg,"This value is obsolete and is not used.");
             break;

        case DSERR_OUTOFMEMORY:
             strcpy(errmsg,"The DirectSound subsystem could not allocate sufficient memory to complete the caller's request.");
             break;

        case DSERR_PRIOLEVELNEEDED:
             strcpy(errmsg,"The caller does not have the priority level required for the function to succeed.");
             break;

        case DSERR_UNINITIALIZED:
             strcpy(errmsg,"The IDirectSound::Initialize method has not been called or has not been called successfully before other methods were called.");
             break;

        case DSERR_UNSUPPORTED:
             strcpy(errmsg,"The function called is not supported at this time.");
             break;

        default:
             sprintf(errmsg,"Unknown Error Code: %04X", hresult);
             strcpy(errmsg, msgtext);
             break;
       }

    sprintf(msgtext, "DSERR: %s\n", errmsg);
    WriteDebug( msgtext );
    sprintf(msgtext, "%s FAILED\n", msg);
    WriteDebug( msgtext );
   }

void DD_Error( HRESULT hresult, char *msg )
   {
    static char msgtext[128];
    static char errmsg[128];
    switch(hresult)
       {
        case DD_OK:
             strcpy(errmsg,"The request completed successfully.");
             break;

        case DDERR_ALREADYINITIALIZED:
             strcpy(errmsg,"The object has already been initialized.");
             break;

        case DDERR_BLTFASTCANTCLIP:
             strcpy(errmsg,"A DirectDrawClipper object is attached to a source surface that has passed into a call to the IDirectDrawSurface2::BltFast method.");
             break;

        case DDERR_CANNOTATTACHSURFACE:
             strcpy(errmsg,"A surface cannot be attached to another requested surface.");
             break;

        case DDERR_CANNOTDETACHSURFACE:
             strcpy(errmsg,"A surface cannot be detached from another requested surface.");
             break;

        case DDERR_CANTCREATEDC:
             strcpy(errmsg,"Windows cannot create any more device contexts (DCs).");
             break;

        case DDERR_CANTDUPLICATE:
             strcpy(errmsg,"Primary and 3D surfaces, or surfaces that are implicitly created, cannot be duplicated.");
             break;

        case DDERR_CANTLOCKSURFACE:
             strcpy(errmsg,"Access to this surface is refused because an attempt was made to lock the primary surface without DCI support.");
             break;

        case DDERR_CANTPAGELOCK:
             strcpy(errmsg,"An attempt to page lock a surface failed. Page lock will not work on a display-memory surface or an emulated primary surface.");
             break;

        case DDERR_CANTPAGEUNLOCK:
             strcpy(errmsg,"An attempt to page unlock a surface failed. Page unlock will not work on a display-memory surface or an emulated primary surface.");
             break;

        case DDERR_CLIPPERISUSINGHWND:
             strcpy(errmsg,"An attempt was made to set a clip list for a DirectDrawClipper object that is already monitoring a window handle.");
             break;

        case DDERR_COLORKEYNOTSET:
             strcpy(errmsg,"No source color key is specified for this operation.");
             break;

        case DDERR_CURRENTLYNOTAVAIL:
             strcpy(errmsg,"No support is currently available.");
             break;

        case DDERR_DCALREADYCREATED:
             strcpy(errmsg,"A device context (DC) has already been returned for this surface. Only one DC can be retrieved for each surface.");
             break;

        case DDERR_DIRECTDRAWALREADYCREATED:
             strcpy(errmsg,"A DirectDraw object representing this driver has already been created for this process.");
             break;

        case DDERR_EXCEPTION:
             strcpy(errmsg,"An exception was encountered while performing the requested operation.");
             break;

        case DDERR_EXCLUSIVEMODEALREADYSET:
             strcpy(errmsg,"An attempt was made to set the cooperative level when it was already set to exclusive.");
             break;

        case DDERR_GENERIC:
             strcpy(errmsg,"There is an undefined error condition.");
             break;

        case DDERR_HEIGHTALIGN:
             strcpy(errmsg,"The height of the provided rectangle is not a multiple of the required alignment.");
             break;

        case DDERR_HWNDALREADYSET:
             strcpy(errmsg,"The DirectDraw cooperative level window handle has already been set. It cannot be reset while the process has surfaces or palettes created.");
             break;

        case DDERR_HWNDSUBCLASSED:
             strcpy(errmsg,"DirectDraw is prevented from restoring state because the DirectDraw cooperative level window handle has been subclassed.");
             break;

        case DDERR_IMPLICITLYCREATED:
             strcpy(errmsg,"The surface cannot be restored because it is an implicitly created surface.");
             break;

        case DDERR_INCOMPATIBLEPRIMARY:
             strcpy(errmsg,"The primary surface creation request does not match with the existing primary surface.");
             break;

        case DDERR_INVALIDCAPS:
             strcpy(errmsg,"One or more of the capability bits passed to the callback function are incorrect.");
             break;

        case DDERR_INVALIDCLIPLIST:
             strcpy(errmsg,"DirectDraw does not support the provided clip list.");
             break;

        case DDERR_INVALIDDIRECTDRAWGUID:
             strcpy(errmsg,"The globally unique identifier (GUID) passed to the DirectDrawCreate function is not a valid DirectDraw driver identifier.");
             break;

        case DDERR_INVALIDMODE:
             strcpy(errmsg,"DirectDraw does not support the requested mode.");
             break;

        case DDERR_INVALIDOBJECT:
             strcpy(errmsg,"DirectDraw received a pointer that was an invalid DirectDraw object.");
             break;

        case DDERR_INVALIDPARAMS:
             strcpy(errmsg,"One or more of the parameters passed to the method are incorrect.");
             break;

        case DDERR_INVALIDPIXELFORMAT:
             strcpy(errmsg,"The pixel format was invalid as specified.");
             break;

        case DDERR_INVALIDPOSITION:
             strcpy(errmsg,"The position of the overlay on the destination is no longer legal.");
             break;

        case DDERR_INVALIDRECT:
             strcpy(errmsg,"The provided rectangle was invalid.");
             break;

        case DDERR_INVALIDSURFACETYPE:
             strcpy(errmsg,"The requested operation could not be performed because the surface was of the wrong type.");
             break;

        case DDERR_LOCKEDSURFACES:
             strcpy(errmsg,"One or more surfaces are locked, causing the failure of the requested operation.");
             break;

        case DDERR_NO3D:
             strcpy(errmsg,"No 3D hardware or emulation is present.");
             break;

        case DDERR_NOALPHAHW:
             strcpy(errmsg,"No alpha acceleration hardware is present or available, causing the failure of the requested operation.");
             break;

        case DDERR_NOBLTHW:
             strcpy(errmsg,"No blitter hardware is present.");
             break;

        case DDERR_NOCLIPLIST:
             strcpy(errmsg,"No clip list is available.");
             break;

        case DDERR_NOCLIPPERATTACHED:
             strcpy(errmsg,"No DirectDrawClipper object is attached to the surface object.");
             break;

        case DDERR_NOCOLORCONVHW:
             strcpy(errmsg,"The operation cannot be carried out because no color-conversion hardware is present or available.");
             break;

        case DDERR_NOCOLORKEY:
             strcpy(errmsg,"The surface does not currently have a color key.");
             break;

        case DDERR_NOCOLORKEYHW:
             strcpy(errmsg,"The operation cannot be carried out because there is no hardware support for the destination color key.");
             break;

        case DDERR_NOCOOPERATIVELEVELSET:
             strcpy(errmsg,"A create function is called without the IDirectDraw2::SetCooperativeLevel method being called.");
             break;

        case DDERR_NODC:
             strcpy(errmsg,"No DC has ever been created for this surface.");
             break;

        case DDERR_NODDROPSHW:
             strcpy(errmsg,"No DirectDraw raster operation (ROP) hardware is available.");
             break;

        case DDERR_NODIRECTDRAWHW:
             strcpy(errmsg,"Hardware-only DirectDraw object creation is not possible; the driver does not support any hardware.");
             break;

        case DDERR_NODIRECTDRAWSUPPORT:
             strcpy(errmsg,"DirectDraw support is not possible with the current display driver.");
             break;

        case DDERR_NOEMULATION:
             strcpy(errmsg,"Software emulation is not available.");
             break;

        case DDERR_NOEXCLUSIVEMODE:
             strcpy(errmsg,"The operation requires the application to have exclusive mode, but the application does not have exclusive mode.");
             break;

        case DDERR_NOFLIPHW:
             strcpy(errmsg,"Flipping visible surfaces is not supported.");
             break;

        case DDERR_NOGDI:
             strcpy(errmsg,"No GDI is present.");
             break;

        case DDERR_NOHWND:
             strcpy(errmsg,"Clipper notification requires a window handle, or no window handle has been previously set as the cooperative level window handle.");
             break;

        case DDERR_NOMIPMAPHW:
             strcpy(errmsg,"The operation cannot be carried out because no mipmap texture mapping hardware is present or available.");
             break;

        case DDERR_NOMIRRORHW:
             strcpy(errmsg,"The operation cannot be carried out because no mirroring hardware is present or available.");
             break;

        case DDERR_NOOVERLAYDEST:

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本大道综合伊人精品热热| 国产精品538一区二区在线| 97久久久精品综合88久久| 久久久久久久久岛国免费| 国产精品一二三区| 亚洲国产成人在线| eeuss鲁片一区二区三区在线观看| 国产精品拍天天在线| av电影一区二区| 一区二区三区免费看视频| 欧美午夜免费电影| 国产很黄免费观看久久| 国产女人水真多18毛片18精品视频| 成人av影院在线| 亚洲国产精品视频| 日韩精品综合一本久道在线视频| 国产中文字幕精品| 中文字幕欧美一| 欧美一区二区三区视频在线观看| 另类调教123区| 国产精品三级在线观看| 欧美性受xxxx黑人xyx性爽| 蜜臀av性久久久久蜜臀av麻豆| 久久免费精品国产久精品久久久久 | 国产午夜精品一区二区三区四区| av福利精品导航| 亚洲一区二区精品久久av| 日韩一区二区精品葵司在线| av亚洲精华国产精华精华| 亚洲第一主播视频| 久久蜜桃一区二区| 欧美性一区二区| 国产成人午夜视频| 亚洲一区二区三区三| 久久久影视传媒| 欧美亚洲丝袜传媒另类| 国产成人在线影院| 亚洲电影第三页| 国产精品久久毛片| 日韩一级片网站| 99re热这里只有精品视频| 男女视频一区二区| 亚洲人精品午夜| 久久一区二区三区四区| 色噜噜狠狠成人网p站| 久久爱www久久做| 一区二区三区在线不卡| 久久久精品免费免费| 6080午夜不卡| 色呦呦一区二区三区| 国产精品综合av一区二区国产馆| 亚洲一区av在线| 中文字幕视频一区| 久久久一区二区| 欧美一级爆毛片| 精品视频1区2区| 99精品国产一区二区三区不卡| 久国产精品韩国三级视频| 亚洲成年人影院| 亚洲精选在线视频| 中文字幕一区在线观看视频| 久久精品视频一区二区三区| 欧美一区二区三区喷汁尤物| 在线观看一区日韩| 色婷婷精品久久二区二区蜜臀av| 成人伦理片在线| 国产激情一区二区三区四区| 久久精品久久精品| 久久精品99久久久| 毛片一区二区三区| 蜜桃视频在线一区| 久久精品国产精品青草| 日本不卡高清视频| 日本 国产 欧美色综合| 日日夜夜免费精品视频| 亚欧色一区w666天堂| 亚洲与欧洲av电影| 五月婷婷综合激情| 亚洲大片在线观看| 日本不卡中文字幕| 美女诱惑一区二区| 久久精品国产秦先生| 激情综合色播激情啊| 国产一区二区免费看| 国产精品一区免费视频| 成人做爰69片免费看网站| 大陆成人av片| 99精品久久只有精品| 欧美亚洲综合网| 欧美日韩另类一区| 欧美一区二区三区视频| 精品久久久久99| 国产拍欧美日韩视频二区| 国产精品美女久久久久久久久久久| 国产精品另类一区| 亚洲精品亚洲人成人网| 一区二区日韩电影| 日韩一区精品视频| 国产尤物一区二区| 91麻豆文化传媒在线观看| 欧美在线观看一二区| 日韩一区二区免费在线观看| 久久亚洲精品国产精品紫薇| 国产精品毛片高清在线完整版| 亚洲丝袜精品丝袜在线| 午夜久久久久久久久| 九九**精品视频免费播放| 国产成人精品在线看| 一本色道亚洲精品aⅴ| 欧美精品乱码久久久久久| 欧美v国产在线一区二区三区| 久久久久久久久蜜桃| 一区二区三区在线不卡| 久久国产精品99精品国产| aaa国产一区| 日韩午夜小视频| 国产精品久久免费看| 奇米色777欧美一区二区| 成人精品免费视频| 777午夜精品视频在线播放| 国产欧美精品在线观看| 一个色综合网站| 国产一区二区不卡| 欧美性色黄大片手机版| 国产婷婷精品av在线| 五月激情六月综合| 99v久久综合狠狠综合久久| 欧美乱妇15p| 亚洲欧洲另类国产综合| 日韩在线卡一卡二| yourporn久久国产精品| 精品日本一线二线三线不卡| 亚洲日本在线看| 韩国av一区二区三区在线观看| 91国产免费看| 中文字幕av一区二区三区高| 婷婷久久综合九色国产成人| 99久久免费视频.com| 精品国产露脸精彩对白| 亚洲电影你懂得| 91老司机福利 在线| 中文字幕免费不卡| 久久国产精品第一页| 欧美剧在线免费观看网站 | 成人性生交大片免费看视频在线| 9191成人精品久久| 亚洲精品乱码久久久久久日本蜜臀| 国产麻豆精品在线观看| 日韩一级片网站| 日本vs亚洲vs韩国一区三区二区 | 91麻豆精品国产自产在线观看一区 | 日韩亚洲欧美高清| 夜夜嗨av一区二区三区中文字幕| 国产精品性做久久久久久| 欧美一区二区免费视频| 五月激情综合网| 欧美日韩久久不卡| 亚洲一二三四区不卡| 91网站最新网址| 成人欧美一区二区三区| 成人综合婷婷国产精品久久蜜臀| 精品美女被调教视频大全网站| 五月婷婷综合网| 欧美日韩国产高清一区二区三区| 亚洲精品国产精品乱码不99| 91蜜桃网址入口| 亚洲黄色av一区| 在线观看日韩av先锋影音电影院| 亚洲欧洲99久久| av电影在线观看完整版一区二区| 国产精品久久看| 99精品1区2区| 一区二区视频在线| 色婷婷亚洲综合| 亚洲国产精品人人做人人爽| 欧美日韩在线电影| 日韩中文字幕av电影| 日韩精品综合一本久道在线视频| 久久99精品一区二区三区三区| 亚洲精品在线三区| 岛国一区二区在线观看| 中文字幕亚洲成人| 欧美婷婷六月丁香综合色| 日本最新不卡在线| 日韩三级av在线播放| 国产精品夜夜爽| 亚洲人午夜精品天堂一二香蕉| 欧洲国产伦久久久久久久| 三级成人在线视频| 久久久蜜臀国产一区二区| 成人黄色大片在线观看| 亚洲午夜视频在线| 日韩欧美国产综合一区| 国产精品99久久久久久久女警| 国产精品福利一区二区三区| 在线免费不卡视频| 美腿丝袜亚洲色图| 成人免费在线视频观看| 欧美剧情片在线观看| 国产91对白在线观看九色|