Jump to content
  • Advertisement

Archived

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

Glass_Knife

Please help with QueryInterface()

This topic is 5925 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 am trying to use the QueryInterface() as explained in TOTWGPG When I compile, is says, unresolved external _IID_IDirectDraw7 I have included the ddraw.lib in the VC++ 6.0 settings, and included the .lib filed in the search path. What am I doing wrong? LPDIRECTDRAW lpdd_temp; LPDIRECTDRAW& lpdd; if( FAILED( DirectDrawCreate(NULL, &lpdd_temp, NULL) ) ){ ThrowEx(__LINE__,__FILE__); }//end if if( FAILED( lpdd_temp->QueryInterface(IID_IDirectDraw7, (LPVOID *)&lpdd) ) ){ ThrowEx(__LINE__,__FILE__); }//end if I think, therfore I am. I think?

Share this post


Link to post
Share on other sites
Advertisement
Thank you sooooo much. It worked, of course, adding the .lib. I''ve looked through the book, but it doesn''t say anything about doing that. Thank you again. This is the kind of stuff that drives us newbies insane.

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!