在做DirectX程序开发时,代码中有DirectDrawCreateEx(NULL, (void **)&lpdd, IID_IDirectDraw7, NULL)这一句,然后编译代码时,Link阶段出现“无法解析的外部符号 _IID_IDirectDraw7”的错误提示
确保加入了dxguid.lib这个库: #pragma comment (lib, "dxguid")
在做DirectX程序开发时,代码中有DirectDrawCreateEx(NULL, (void **)&lpdd, IID_IDirectDraw7, NULL)这一句,然后编译代码时,Link阶段出现“无法解析的外部符号 _IID_IDirectDraw7”的错误提示
确保加入了dxguid.lib这个库: #pragma comment (lib, "dxguid")