DirectX SDK and Visual Studio 2005 Express Edition Beta

I have Visual Studio 2005 Express Edition Beta installed and I wish to learn DirectX graphics and game programming. My installation of the DirectX SDK goes smoothly, but whe I attempt to debug a DirectX code i get an error in the using Microsoft.DirectX and using Microsoft.DirectX.Direct3D, Visual Studio doesn't recognise the DirectX namespace and refuses to compile and run. How do I solve this problem


Answer this question

DirectX SDK and Visual Studio 2005 Express Edition Beta

  • D?vis K?lis

    You should be able to use any of the Managed DirectX installs with the 2005 Express products, though its probably preferable to use the latest.

    As MarcD mentions, you'll need to add references to the DirectX .dlls before you'll be able to debug or run a DirectX app.  In Solution Explorer, right click on References and select "Add Reference..."  Then on the ".NET" tab search for Microsoft.DirectX and add the appropriate DLLs.

    Thanks,
    Luke Hoban
    Visual C# IDE Program Manager

  • chudman

    Thanks for the link to the tutorial.  But when I got to the end, I didn't have the option "Export Template" available.  Everything is saved but the option isnt even there.

    What version did you use for the example.  I am using VC++ .NET Express.

    I understand there are some differences between CS and C++ but this option should be the same shoudn't it




  • jvcoach23_23

    Paul - is it possible you installed the Redistributable install instead of the full SDK on the XP Home version   DirectX - including the managed extensions - should work on XP Home.  The August version of the managed code directory should be present under C:\WINDOWS\Microsoft.Net\DirectX for Managed Code\1.0.2907.0

  • echaize

    I would check to make sure that it was the DX SDK, I am running home on my laptop, and the Managed Directx System installed fine. Under the Microsoft.Net directory yo should end up with a directory call DirectX for Managed Code. Inside this directory you should have 2 folders, the first is 1.0.2902.0 and 1.0.2907.0 these are both needed for the August SDK Release.

    These 2 directories are needed as the Assemblies in the first have not changed for about 3 releases of the SDK, but the 3DX Assembly has changed for each SDK Release.

  • Rajib

    I downloaded and installed the Aug release and I didn't have any DX9 templates, I also tried the Oct release.  Is ther anything I have to do after installing the SDK to have access to DirectX Project templates

    ps. I am running the 2005 .NET Express as well.



  • marc.friedman

    It should be the same. To be honest I havn't tried but I will give it a go tonight and get back to you.

  • Ben3.14159

    I checked out the C# and J# versions and they have the export template option.  Does your C++ version have that option, mine doesn't.



  • Klaus Leithner

    I downloaded the August update yesterday and installed it, and it now works fine.
    I don't know what happened earlier - I definitely installed a full SDK, but it must have been an earlier one. Sorry for any confusion caused.

  • Aldur

    The templates were removed about a year ago from the sdk install, you have to use the empty project from the samples... or

    I have just had an article posted on Coding4fun that explains how to Create and Application Template using the Express products. For the article I have base the template on a base directX application that is very similar to the old DX Templates that used to get installed.

  • Joey Beninghove

    Does the DirectX SDK you installed claim to be VS 2k5 compliant
    Did you make sure you added a reference to the DirectX Assemblies Without a reference to the assemblies the DX namespaces won't be valid.

  • amitmahajan

    It doesn't appear to be that simple - I have recently tried to do this.
    I downloaded the latest DX9.0c SDK, and it appeared to install correctly, however
    the only folder it installed to the the Microsoft.NET folder was :

    C:\WINDOWS\Microsoft.NET\Managed DirectX\v4.09.00.0900

    which only contains XML files (no DLLs).

    This was on a Windows XP Home edition system.

    Looking in C:\WINDOWS\assembly\gac from the command line, it would appear that the assemblies exist, but I can't find a way of referencing them from VS.NET 2005.

    Having installed VS.NET 2005 and DX9.0c on a Windows Professional system though, I get this additional folder :

    C:\WINDOWS\Microsoft.NET\DirectX for Managed Code

    which seems to contain the DLLs I require - any idea why these don't appear on my XP Home computer

    Thanks,
    Paul

  • DirectX SDK and Visual Studio 2005 Express Edition Beta