Sign in to follow this  
legalize

Direct3D Programming Tips

Recommended Posts

Nice one Richard!

This is the start of a series I take it?

Couple of little nitpicks if I may [wink]

Quote:
Visual Studio ships with enough header and library files that you can write basic programs against the Win32 API. It lacks the headers and libraries for accessing the most recent features of DirectX
Is this entirely true? I know it is of the Pro/TS versions and I think for the 2008 Express Edition, but it isn't true for the 2005 Express Edition. It doesn't seem to pop-up so much now, but it was quite routine to get C++'05 EE users getting the "cannot find Windows.h" or "cannot find atlbase.h" errors which were PSDK related...

Also, and quite worthy of its own entry, is a "tour of the DirectX SDK" - where things are, quick routes into the docs, samples, sample browser, control panel, PIX, runtimes etc...etc... not necessarily how they work, just where they are and how to find them.


Cheers,
Jack

Share this post


Link to post
Share on other sites
Yes, its intended to be a series. I've got a bunch more stubbed out right now.

Yes, the 2008 version ships with the Windows SDK included. And note that I send people to download the 2008 Express, not the 2005 express.

Your suggestion of a guided tour of the SDK is a good one, that will probably be the next tip.

Share this post


Link to post
Share on other sites
Suggestion for future tips :

- Distributing your app. It seems to be a major problem for programmers or something that gets little attention. Pet peeve : you're being asked to download random dlls from google, including dll from debug visual crt or debug runtime. It shouldn't be like this :/.

LeGreg

Share this post


Link to post
Share on other sites
[quote name='LeGreg' timestamp='1233410218' post='4393210']
Suggestion for future tips :

- Distributing your app. It seems to be a major problem for programmers or something that gets little attention. Pet peeve : you're being asked to download random dlls from google, including dll from debug visual crt or debug runtime. It shouldn't be like this :/.

LeGreg
[/quote]

Agree with this one! Distributing D3D stuff can be a real pain.

Share this post


Link to post
Share on other sites
I've just been on the DirectX download site, from the link you provided. In the notes for the Jun 2010 release of the SDK it has the following statement

[b]Visual Studio 2010 Support[/b]
The June 2010 DirectX SDK includes support for Visual Studio 2010. The DirectX SDK will continue to support Visual Studio 2008 as well. However, Visual Studio 2005 will no longer be supported.

Just thought you might want to include that in your blog.

Share this post


Link to post
Share on other sites
Actually if this app is using DirectX 9.0c, there is no problem with distributing it at all. You can safely assume, that core DirectX libraries are already on destination PC (they are included since Windows XP SP2), and all you have to do is add silent install of lightened DirectX Setup redist, provided together with DirectX SDK. In my case such DirectX redist has around 2-3 MB only.

Pleae find more information in this topic:
http://www.gamedev.net/topic/595801-including-directx-runtimes-in-an-installer/
or directly on MSDN page in "Small Imstallation Packages" section:
http://msdn.microsoft.com/en-us/library/ee416805%28v=vs.85%29.aspx

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