LPDIRECTDRAW pddraw;
LPDIRECTDRAW7 pddraw7;
DirectDrawCreate(NULL, &pddraw, NULL);
pddraw->QueryInterface(IID_IDirectDraw7, (LPVOID *)&pddraw7); // 把这行注释掉没错//下面的链接错误
dxguid.lib(dxguid.obj) : fatal error LNK1103: debugging information corrupt; recompile module我已经安装了dx sdk,而且把dxguid.lib的include目录和它本身都引进来了,为什么还出错。
我编写的是win32程序

解决方案 »

  1.   

    Linker Tools Error LNK1103
    debugging information corrupt; recompile moduleProbably the compilation was terminated before a valid object file was created.Recompile the given object file. If recompiling does not correct the problem, note the circumstances of the error, try to isolate the problem and create a reproducible test case, then consult the technical-support help file or the technical-support section in one of your manuals.代码?
    怎么会有dxguid.obj?编译dx源文件,重新生成lib库?
      

  2.   

    我的代码:#include <ddraw.h>LPDIRECTDRAW7 lp_dd; //DirectDraw对象
    DDCAPS caps_driver; memset(&caps_driver, 0, sizeof(DDCAPS));
    caps_driver.dwSize = sizeof(DDCAPS); HRESULT hr = DirectDrawCreateEx(NULL, (void **)&lp_dd, IID_IDirectDraw7, NULL);
    if (FAILED(hr))
    {
    LOG_ERROR(("(%s) create ddraw error:%x", _parameter.GetParameterString(KEY_DEVICE_GUID, "NULL GUID"), hr));
    return hr;
    }