Jump to content

  • Log In with Google      Sign In   
  • Create Account

fatal error LNK1104: cannot open file 'd3d9.h'


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
2 replies to this topic

#1 Anddos   Members   -  Reputation: 515

Like
0Likes
Like

Posted 19 May 2014 - 06:38 AM

I am trying to compile some source code that came with the book,DirectX User Interfaces,I have linked the include and lib files from the DirectX SDK and added these lines.

 

#include <d3d9.h>
#include <d3dx9.h>
#include "UILIB.H"
#pragma comment(lib,"d3d9.h")
#pragma comment(lib,"d3dx9.h")
 
The error i get is 
 

fatal error LNK1104: cannot open file 'd3d9.h'

 

I am able to compile other DirectX projects from another book,i am not sure what the problem is,i have attached the source code just incase someone is willing to help figure this mystery out.

 

Thanks if you can help

 

Could not attach with as a gamedev attachment as the max size is 2MB

 

Link

 

http://www.datafilehost.com/d/ea48e89e

 


Edited by Anddos, 19 May 2014 - 06:53 AM.

:)

Sponsor:

#2 Alessio1989   Members   -  Reputation: 2130

Like
3Likes
Like

Posted 19 May 2014 - 07:39 AM

Sorry, I will not download @20KB/s (data file host is not a speed champion)... anyway if it is as you wrote:

#pragma comment(lib,"d3d9.h")
#pragma comment(lib,"d3dx9.h")

 
shouldn't be
#pragma comment(lib,"d3d9.lib")
#pragma comment(lib,"d3dx9.lib")
?

"Software does not run in a magical fairy aether powered by the fevered dreams of CS PhDs"


#3 Anddos   Members   -  Reputation: 515

Like
0Likes
Like

Posted 19 May 2014 - 08:14 AM

Ahh your right,big typo on my behalf,but this sample dosent seem to be working,it says click here to enter text but when i click nothing is happening,


:)




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