🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

IID_IDirectDraw4 error

Started by
2 comments, last by ZomeonE 24 years, 6 months ago
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

Advertisement
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
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?

Thanks, I had linked to ddraw.lib, but not to dxguid.lib.

This topic is closed to new replies.

Advertisement