Jump to content
  • Advertisement
Sign in to follow this  
Anddos

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

This topic is 1667 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 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

Share this post


Link to post
Share on other sites
Advertisement
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")
?

Share this post


Link to post
Share on other sites

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,

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!