Jump to content
  • Advertisement
Sign in to follow this  
legalize

Direct3D Programming Tips

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

Advertisement
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
There is an article in the DX sdk which tells how to make a setup program which instals the VC redist and which runs DX setup to install the correct D3DX dlls.

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


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

Visual Studio 2010 Support
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
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!