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

Started by
1 comment, last by Anddos 9 years, 11 months ago

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

:)
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")
?
"Recursion is the first step towards madness." - "Skegg?ld, Skálm?ld, Skildir ro Klofnir!"
Direct3D 12 quick reference: https://github.com/alessiot89/D3D12QuickRef/

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,

:)

This topic is closed to new replies.

Advertisement