Archived

This topic is now archived and is closed to further replies.

ZomeonE

IID_IDirectDraw4 error

Recommended Posts

I tested to put the include path of directx first and then I get another error:

Linking...
main.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw4
Debug/scroll3.exe : fatal error LNK1120: 1 unresolved externals

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
you have to link to the directx libraries.
in visual c++ its in project->settings->link
add ddraw.lib and probably dxguid.lib in the object/lib modules list

Share this post


Link to post
Share on other sites
I'm getting a error from the compiler from this code:

lpdd->QueryInterface(IID_IDirectDraw4,(LPVOID *)&lpdd4)

error:

error C2065: 'IID_IDirectDraw4' : undeclared identifier

What have I forgot to do?

Share this post


Link to post
Share on other sites