Jump to content

  • Log In with Google      Sign In   
  • Create Account

IID_IDirectDraw4 error


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 ZomeonE   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 December 1999 - 03:03 AM

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?


Sponsor:

#2 ZomeonE   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 December 1999 - 01:08 AM

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


#3 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 30 December 1999 - 01:43 AM

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

#4 ZomeonE   Members   -  Reputation: 122

Like
Likes
Like

Posted 30 December 1999 - 03:03 AM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS