error LNK2001: 无法解析的外部符号 _IID_IDirectDraw7

来源:互联网 发布:淘宝宝贝被管控下架 编辑:程序博客网 时间:2024/06/05 19:35


      在做DirectX程序开发时,代码中有DirectDrawCreateEx(NULL, (void **)&lpdd, IID_IDirectDraw7, NULL)这一句,然后编译代码时,Link阶段出现“无法解析的外部符号 _IID_IDirectDraw7”的错误提示

    确保加入了dxguid.lib这个库: #pragma comment (lib, "dxguid")

0 0
原创粉丝点击