Great Moments in Microsoft History
Posted: Tue Sep 14, 2004 10:13 pm
After installing the 9.0b SDK and attempting to use the Microsoft.DirectX namespace in C#, I get a compile error "The type or namespace name 'DirectX' does not exist in the class or namespace 'Microsoft' (are you missing an assembly reference?)"
I have looked through the documentation (as it is) to try to find out if I need to add a reference, but I have found no further info and do not know how to proceed.
<theairdogg@discussions.microsoft.com> wrote:
Yes, you need to add a reference: in the Project View click right on References/Add Reference..., go to the .NET tab. If the DirectX DLLs are here, select those you want to use (you should take the ones versioned "1.0.1901.0"), finished. If they aren't, click Browse..., navigate to your
WINDOWS\Microsoft.NET\Managed DirectX folder, select the right version folder (v9.00.1126 is the right one, unless you have a good reason to use the older one) and, again, select those DLLs you want to use.
If you only have old DirectX DLLs on your system (1.0.0900.0 and v.00.0900), you installed an old version of the 9.0b SDK and you should get the so-called Summer 2003 Update instead.
... Correct me if I'm wrong, but according to this, the original DirectX 9.0b SDK had a slight problem, in so much as that it doesn't actually work with C#.
Oh! Well, nothing too dramatic, after all. gg, MS.
I have looked through the documentation (as it is) to try to find out if I need to add a reference, but I have found no further info and do not know how to proceed.
<theairdogg@discussions.microsoft.com> wrote:
Yes, you need to add a reference: in the Project View click right on References/Add Reference..., go to the .NET tab. If the DirectX DLLs are here, select those you want to use (you should take the ones versioned "1.0.1901.0"), finished. If they aren't, click Browse..., navigate to your
WINDOWS\Microsoft.NET\Managed DirectX folder, select the right version folder (v9.00.1126 is the right one, unless you have a good reason to use the older one) and, again, select those DLLs you want to use.
If you only have old DirectX DLLs on your system (1.0.0900.0 and v.00.0900), you installed an old version of the 9.0b SDK and you should get the so-called Summer 2003 Update instead.
... Correct me if I'm wrong, but according to this, the original DirectX 9.0b SDK had a slight problem, in so much as that it doesn't actually work with C#.
Oh! Well, nothing too dramatic, after all. gg, MS.