Sign in to follow this  
Shashwat Rohilla

Getting started with DirectX

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
ryan20fun    2635
[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.


[/quote]

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

Share this post


Link to post
Share on other sites
Kamo16    102
[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.


[/quote]

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='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.


[/quote]

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.
[b]Please send me the link for some newer version.
Or mail me some torrent (if possible) at [/b][email="shashwat.delhi@gmail.com"][b]shashwat.delhi@gmail.com[/b][/email][b].
Is this problem coming because I am using old SDK?
[/b]Thank you!

Share this post


Link to post
Share on other sites
Kamo16    102
[quote name='Shashwat Rohilla' timestamp='1306736539' post='4817405']
[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.


[/quote]

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.
[b]Please send me the link for some newer version.
Or mail me some torrent (if possible) at [/b][email="shashwat.delhi@gmail.com"][b]shashwat.delhi@gmail.com[/b][/email][b].
Is this problem coming because I am using old SDK?
[/b]Thank you!
[/quote]

[url="http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba"]http://www.microsoft...02-438a3ba730ba[/url]

Share this post


Link to post
Share on other sites
ryan20fun    2635
[quote name='Shashwat Rohilla' timestamp='1306736539' post='4817405']
[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.


[/quote]

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.
[b]Please send me the link for some newer version.
Or mail me some torrent (if possible) at [/b][email="shashwat.delhi@gmail.com"][b]shashwat.delhi@gmail.com[/b][/email][b].
Is this problem coming because I am using old SDK?
[/b]Thank you!
[/quote]

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

[url="http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba"]here is the link to the latest version[/url]

Share this post


Link to post
Share on other sites
n3Xus    951
[quote name='Shashwat Rohilla' timestamp='1306736539' post='4817405']
This was one of the few torrents which I got.
[/quote]



DirectX SDK is FREE [img]http://public.gamedev.net/public/style_emoticons/default/laugh.gif[/img]

Share this post


Link to post
Share on other sites
[quote name='Kamo16' timestamp='1306736502' post='4817404']
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.
[/quote]

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 [b]find[/b] dxd310d.lib" instead of "can not [b]open[/b] dxd310d.lib". Isn't it?


[quote]
[url="http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&FamilyID=3021d52b-514e-41d3-ad02-438a3ba730ba"][color="#284b72"]http://www.microsoft...02-438a3ba730ba[/color][/url]
[/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
[quote name='ryan20fun' timestamp='1306941660' post='4818298']
did you create that project or is it a "complete" sample tutorial ?
[/quote]

Complete sample Tutorial.

It was a VS2005 solution. When I opened it.
It was automatically converted to VS2008 format. Can it be the problem?

Share this post


Link to post
Share on other sites
iedoc    2527
My suggestion is to keep trying to download the latest directx sdk from microsoft. Since its a big file, it might not completely download the first few times you try if you have a slow internet connection or if you're far from their servers.

Share this post


Link to post
Share on other sites
[quote name='iedoc' timestamp='1306992619' post='4818530']
My suggestion is to keep trying to download the latest directx sdk from microsoft. Since its a big file, it might not completely download the first few times you try if you have a slow internet connection or if you're far from their servers.
[/quote]


It was downloaded fully. But when I checked the size. It was just around 300MB.
Not only me, many other people were getting the same problem.
When I tried running the setup, it gave me some error.
Anyways, I'll try it.

Share this post


Link to post
Share on other sites
ryan20fun    2635
[quote name='Shashwat Rohilla' timestamp='1306996262' post='4818545']
Do you think it the problem with the version?
Or I am missing something to run the program?
[/quote]

ive got the June2010 version and it is 571MB

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this