I have VS2008, and I downloaded and installed the DirectX SDK.
I want to access the DirectX classes from C#, but I can't see how to make C#
aware of them.
using Microsoft.DirectX.Direct3DX;
says the namespace doesn't exist.
How do I link so a C# program has access?
Thanks, Peter Webb
You need to add reference(s) to the DirectX assembly(ies) - they've got
names like microsoft.directx.*.dll. The documention for the DirectX SDK
should tell you which assembly(ies) you need to reference for any given
DirectX feature.
-cd
In addition to adding the references as Carl said, the above line should be
using Microsoft.DirectX.Direct3D; //No X at the end.
Rob