Original Post
Im going through some code of mine, converting it from an earlier version of DirectDraw to version 7.0, and now im getting a linker error.
Linking...
DDrawMgr.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
I have
#pragma comment(lib, "ddraw.lib")
in the source file, and the two symbols the error refers to are in this:
ddrval = CoCreateInstance( CLSID_DirectDraw, NULL, CLSCTX_ALL, IID_IDirectDraw7, (void**)&m_pDDraw );
oh yea, another question, shouldnt the first parameter be CLSID_DirectDraw7, not CLSID_DirectDraw? This is MSDN code, so i havent changed it, but it seems like its wrong. is it?
[edited by - Mulligan on January 6, 2004 3:30:01 PM]