"Diego_Atos" <di********@POTAbigfoot.com> wrote in message
news:MP************************@news.tin.it...
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