Jump to content

  • Log In with Google      Sign In   
  • Create Account

Problems building my DirectX 7 library.


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 JackAmbrose   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 October 1999 - 10:31 AM

Just finished putting together some of the basic components in my DirectX library (Much of it comes for various other souces that I've put together), however I'm having a small, but frustrating problem. I upgraded the library to DirectX 7 and started using the DirectDrawCreateEx metod. It compiles fine, but on building the program I get the following error out of VC++:

Linking...
DDObject.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7
Release/Stars.exe : fatal error LNK1120: 1 unresolved externals

As far as I can tell everything is OK. Why is it upset about this symbol? I've gone through and removed any old versions of the DirectX headers and libraries that were on the machine, but that didn't help (solved some other problems however). Here is the whole line of code:

HRESULT hr = DirectDrawCreateEx(NULL,(LPVOID *)&DDObj,IID_IDirectDraw7,NULL);

Any ideas? I'm sure it is something simple and/or stupid but I'm just not seeing it.


Sponsor:

#2 NightShade   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 October 1999 - 09:51 AM

Hmm, are you linking with dxguid.lib?
I think alot of the IID_* is contained in it.
-ns


#3 JackAmbrose   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 October 1999 - 10:07 AM

ARG! OK that did it. The project now compiles. What a pain. Is this something new with DirectX 7, or perhaps I've never used the GUIDs in this fashion before.

Well thank you very much! See I knew it was a bonehead problem with a simple solution. =)



#4 NightShade   Members   -  Reputation: 122

Like
Likes
Like

Posted 27 October 1999 - 10:31 AM

Hey, glad that worked! I know alot of things in 6.0 needed it too (did some directplay work which definately used the GUID's)
It used to be just DirectDrawCreate which didn't ask for a GUID, which maybe is why you didn't need the library before.
-ns




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