DirectX SDK and References: using Microsoft.DirectX

D

Diego_Atos

I want to create objects using directX. I downloaded SDK version of
DirectX. I've installed it.

Which is the right dll to add to references?
I can't find it.


thanks
--
-Diego (Atos)-
-L'uomo è superiore agli animali-
-Fanno eccezione il nano e la giraffa-
-A.Bergonzoni-
-Per rispondere in privato potare "POTA" dall'indirizzo-
 
T

Tim Anderson

Diego_Atos said:
I want to create objects using directX. I downloaded SDK version of
DirectX. I've installed it.

Which is the right dll to add to references?
I can't find it.

The DLLs begin Micrsooft.DirectX, eg. Microsoft.DirectX.dll and
Microsoft.DirectX.DirectDraw.dll.

Installing the latest DirectX SDK should fix it. If all else fails, here's a
hack:

- Check that the Microsoft.DirectX assemblies are in the GAC (Control
Panel - Administrative Tools - Framework Configuration - Manaage Assembly
Cache - View list of Assemblies

- If not, re-run the runtime setup.

- If they are, open up a command prompt. Create a folder, say c:\ManagedDX.
Switch to that folder, then type:

xcopy c:\windows\assembly\gac\microsoft.directx.* /s

where c:\windows is your Windows install dir. Now you can browse to this
folder in the Visual Studio Add Reference dialog and pick up the references
you need.

If you use this technique, bear in mind that your copied assemblies won't
get updated by Framework updates. Treat it as as temporary measure; the
references ought to show up in the Add Reference dialog anyway (but for some
reason they sometimes do not).

Tim
10 reasons to look at SharpDevelop:
http://www.itwriting.com/blog/?postid=87
 
D

Diego_Atos

Risposta a:
Tim Anderson ([email protected])
_________________
- If they are, open up a command prompt. Create a folder, say c:\ManagedDX.
Switch to that folder, then type:

ok. i've done it.

Thanks.


--
-Diego (Atos)-
-L'uomo è superiore agli animali-
-Fanno eccezione il nano e la giraffa-
-A.Bergonzoni-
-Per rispondere in privato potare "POTA" dall'indirizzo-
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top