Jump to content
  • Advertisement
Sign in to follow this  
Shashwat Rohilla

Getting started with DirectX

This topic is 2547 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 using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.

Share this post


Link to post
Share on other sites
Advertisement

I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?

Share this post


Link to post
Share on other sites

I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




You have to set the include path and the library paths for your project, as well as specify additional dependencies in the linker.

To specify the paths, open up VS and start a project (or use an existing sample from the SDK), click on the 'Properties' tab at the top, navigate to 'VC++ directories' and click on the 'Include Directories' row in the window and to the right specify the path to the SDK's include folder. Then click on the 'Library Directories' row and specify the path to the SDK's lib folder.

Once you done that, under the VC++ Directories click on Linker beneath it. In the linker category, navigate to the Input option. Select the 'Additional Dependencies' row and in the field to the right enter the library file names you want to use. For example to use DX10, you would want to probably specify


d3d10.lib
d3dx10d.lib
dxerr.lib
dxguid.lib
dxgi.lib

as dependencies.

Hope that was clear enough, good luck.

Share this post


Link to post
Share on other sites

[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!

Share this post


Link to post
Share on other sites

[quote name='ryan20fun' timestamp='1306734882' post='4817396']
[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!
[/quote]

http://www.microsoft...02-438a3ba730ba

Share this post


Link to post
Share on other sites

[quote name='ryan20fun' timestamp='1306734882' post='4817396']
[quote name='Shashwat Rohilla' timestamp='1306734346' post='4817394']
I am using Visual Studio 2008, windows 7 64-bit.

I downloaded DirectX SDK August 2007 and installed it.
When I tried to build a tutorial program, it said "can not open dx3d10d.lib"
Please help me why this error is coming. The file is present in the required folder of VS.




why are you using a SDK that is 4 Years Old ?
[/quote]

This was one of the few torrents which I got. I asked my friend to download.
Please send me the link for some newer version.
Or mail me some torrent (if possible) at
[email="shashwat.delhi@gmail.com"]shashwat.delhi@gmail.com[/email].
Is this problem coming because I am using old SDK?
Thank you!
[/quote]

why was my post -1 ?, its not like asking a question is bad

here is the link to the latest version

Share this post


Link to post
Share on other sites

You have to set the include path and the library paths for your project, as well as specify additional dependencies in the linker.

To specify the paths, open up VS and start a project (or use an existing sample from the SDK), click on the 'Properties' tab at the top, navigate to 'VC++ directories' and click on the 'Include Directories' row in the window and to the right specify the path to the SDK's include folder. Then click on the 'Library Directories' row and specify the path to the SDK's lib folder.

Once you done that, under the VC++ Directories click on Linker beneath it. In the linker category, navigate to the Input option. Select the 'Additional Dependencies' row and in the field to the right enter the library file names you want to use. For example to use DX10, you would want to probably specify


d3d10.lib
d3dx10d.lib
dxerr.lib
dxguid.lib
dxgi.lib

as dependencies.

Hope that was clear enough, good luck.


Actually, when I tried writing a basic window program, it worked.
The path is already mentioned and dx*.lib are being added to the same path only. (Still, I will confirm)
It would have been this problem, then I think it should have given the error
"can not find dxd310d.lib" instead of "can not open dxd310d.lib". Isn't it?



[color="#284b72"]http://www.microsoft...02-438a3ba730ba
[/quote]

I downloaded this link. But the total size was around 350MB instead of 571MB mentioned there. The setup didn't started.
When I searched on the net, many people were getting the same error.
So, I started searching for the torrents and that is the one which I found the best at that time.

As a beginner in DirectX, I am comfortable with any version. But atleast the program should run.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!