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

DirectX SDK and Visual Studio 2005 Express Edition Beta
D?vis K?lis
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
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
echaize
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
ps. I am running the 2005 .NET Express as well.
marc.friedman
Ben3.14159
Klaus Leithner
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
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
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
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