关于建立DirectDraw对象的问题
代码如下:
IDirectDraw* m_pIDirectDraw;
HRESULT hr;
hr = DirectDrawCreate(NULL,&m_pIDirectDraw,NULL);
但是编译的时候发生错误:
inidd.obj : error LNK2001: unresolved external symbol_DirectDrawCreate@12
Debug/DD.exe : fatal error LNK1120: 1 unresolved externals
请问是什么问题?
[解决办法]
缺少库
[解决办法]
#pragma comment(lib, "strmiids.lib ")