Jump to content
  • Advertisement

Archived

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

ZomeonE

IID_IDirectDraw4 error

This topic is 6844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!