Archived

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

Glass_Knife

Please help with QueryInterface()

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