Newbie DirectX 9

X

Xarky

Hi,
I am trying to use DirectX 9 for the first time. I have downloaded
the SDK from microsoft site, and installed it on my pc.

I created a new application, and I am trying to use
using Microsoft.DirectX;

This namespace(DirectX) is not accessible. I tried to Add Reference
but can't find the .Net/COM component to install.

From my command prompt I tried to search for the files.
cd c:\Windows\Assembly\gac
dir

It found all the files
Microsoft.DirectX
Microsoft.DirectX.AudioVideoPlayback
....etc

I tried to add reference to these but visual studio does not allow me
to do that.

Can someone help me out.
Thanks in Advance
 
L

Lebesgue

there is a group microsoft.public.win32.programmer.directx.managed where you
may get answers to managed DirectX related questions
 
F

Fred Mellender

If you installed the latest SDK correctly, you should be able to add the
references via the Add Reference window. They are under the .NET tab, not
the COM tab, assuming you wish to use the managed code versions.

You can download a sample C# Express project, "DirectX-3D Nebula
generator", from http://channel9.msdn.com/ShowForum.aspx?ForumID=31 . It
uses managed Direct X. It was originally built under VS2003, but was changed
to build under VS2005/C# Express beta version 2. The changes were minor.

A very helpful book is Managed Direct X Kick Start, by Tom Miller.
 
S

Saso Zagoranski

The DLLs should be listed directly but If they are not you should search for
the
Microsoft.DirectX.*.dll files.
Open the Add Reference window and click "Browse" then pick the files from
your disk.

Although it is very unusual that they are not listed...
 
X

xarky d_best

Hi,
I searched for the files told, and known were found. Does the link I
gave holds the file, I required to install?

Or what could be my problem.
 
F

Fred Mellender

It might be that the install of the SDK did not work. I suggest you
download it again and try reinstalling it again.

Go to http://msdn.microsoft.com/directx/directxdownloads/ and download it
using the link on that page. Make sure you get the April 2005 Update.
After you install it, you should find the utility
C:\WINDOWS\system32\dxdiag.exe. Execute that to find the current version of
directX that you have installed. It should say (on the System Tab, at the
bottom) DirectX Version: DirectX 9.0c. If you look under the DirectX Files
tab of that utility, you should see the "Microsoft.DirectX.....dll files.
There might be multiple copies of the same file, but with different
versions. One should be Microsoft.DirectX.dll, version 5.04.0000.2904,
dated 5/17/2005.

Perhaps you have just downloaded the runtime, and not the SDK? If installed
correctly, the dlls should show up in VS2005/VS2003 under the .NET tab when
you attempt to add a new reference to a project.
 
X

xarky d_best

Hi,

I downloaded the file from the link given, and installed the program.
Now from my Visual Studio, I can find the DirectX references.

Thanks for all your support given.
 

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

Top