473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

DirectX

Hi,
I am thinking about developing a 3D pool game in C# using DirectX, however
when I compile a C# at the command prompt using; csc PoolGame.cs , I get the
following error message;

The type or namespace name 'DirectX' does not exist in the class or
namespace 'Microsoft' (are you missing an assembly reference?)

Im not sure why it says this because I have DirectX 9.0 installed ??

Thanks in advance,
Junaid
Nov 16 '05 #1
4 9061
Hello

You have to download the DirectX SDK
http://www.microsoft.com/downloads/d...DisplayLang=en
Then reference the managed DirectX assemblies in your project.

Best regards,
Sherif

"Junaid Hussain" <ju************@gmail.com> wrote in message
news:rI**************@newsfe6-win.ntli.net...
Hi,
I am thinking about developing a 3D pool game in C# using DirectX, however
when I compile a C# at the command prompt using; csc PoolGame.cs , I get the following error message;

The type or namespace name 'DirectX' does not exist in the class or
namespace 'Microsoft' (are you missing an assembly reference?)

Im not sure why it says this because I have DirectX 9.0 installed ??

Thanks in advance,
Junaid

Nov 16 '05 #2
Hi,
I do have DirectX 9.0 SDK installed but I still get the error message. Any
ideas?

Regards,
Junaid
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
Hello

You have to download the DirectX SDK
http://www.microsoft.com/downloads/d...DisplayLang=en
Then reference the managed DirectX assemblies in your project.

Best regards,
Sherif

"Junaid Hussain" <ju************@gmail.com> wrote in message
news:rI**************@newsfe6-win.ntli.net...
Hi,
I am thinking about developing a 3D pool game in C# using DirectX,
however
when I compile a C# at the command prompt using; csc PoolGame.cs , I get

the
following error message;

The type or namespace name 'DirectX' does not exist in the class or
namespace 'Microsoft' (are you missing an assembly reference?)

Im not sure why it says this because I have DirectX 9.0 installed ??

Thanks in advance,
Junaid


Nov 16 '05 #3
Hello

You have to reference the Managed DirectX assemblies using the /reference
command line option if you are using the command line compiler, or by adding
a reference to your project if using visual studio.

Best regards,
Sherif
"Junaid Hussain" <ju************@gmail.com> wrote in message
news:MH***************@newsfe6-win.ntli.net...
Hi,
I do have DirectX 9.0 SDK installed but I still get the error message. Any
ideas?

Regards,
Junaid
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
Hello

You have to download the DirectX SDK
http://www.microsoft.com/downloads/d...DisplayLang=en Then reference the managed DirectX assemblies in your project.

Best regards,
Sherif

"Junaid Hussain" <ju************@gmail.com> wrote in message
news:rI**************@newsfe6-win.ntli.net...
Hi,
I am thinking about developing a 3D pool game in C# using DirectX,
however
when I compile a C# at the command prompt using; csc PoolGame.cs , I
get the
following error message;

The type or namespace name 'DirectX' does not exist in the class or
namespace 'Microsoft' (are you missing an assembly reference?)

Im not sure why it says this because I have DirectX 9.0 installed ??

Thanks in advance,
Junaid



Nov 16 '05 #4
Thanks v.much Sherif,

I managed to find the location of the DirectX assemblies and used the
/reference option to make use of them and now I dont get the error. I have
just one more question now. How can I add these assemblies to my classpath
or somehow automate the process of referncing these assemblies because at
the moment I have to type the following;

csc /reference:C:\WINDOWS\assembly\GAC\Microsoft.Direct X\...
\Microsoft.DirectX.dll
/reference:C:\WINDOWS\assembly\GAC\Microsoft.Direct X.Direct3D\...
\Microsoft.DirectX.Direct3D.dll Vertices.cs

Thanks once again for your time and help.
Junaid

"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message
news:eD**************@tk2msftngp13.phx.gbl...
Hello

You have to reference the Managed DirectX assemblies using the /reference
command line option if you are using the command line compiler, or by
adding
a reference to your project if using visual studio.

Best regards,
Sherif
"Junaid Hussain" <ju************@gmail.com> wrote in message
news:MH***************@newsfe6-win.ntli.net...
Hi,
I do have DirectX 9.0 SDK installed but I still get the error message.
Any
ideas?

Regards,
Junaid
"Sherif ElMetainy" <el*************@wayout.net.NOSPAM> wrote in message
news:Ov**************@TK2MSFTNGP10.phx.gbl...
> Hello
>
> You have to download the DirectX SDK
> http://www.microsoft.com/downloads/d...DisplayLang=en > Then reference the managed DirectX assemblies in your project.
>
> Best regards,
> Sherif
>
> "Junaid Hussain" <ju************@gmail.com> wrote in message
> news:rI**************@newsfe6-win.ntli.net...
>> Hi,
>> I am thinking about developing a 3D pool game in C# using DirectX,
>> however
>> when I compile a C# at the command prompt using; csc PoolGame.cs , I get > the
>> following error message;
>>
>> The type or namespace name 'DirectX' does not exist in the class or
>> namespace 'Microsoft' (are you missing an assembly reference?)
>>
>> Im not sure why it says this because I have DirectX 9.0 installed ??
>>
>> Thanks in advance,
>> Junaid
>>
>>
>
>



Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: kastillo | last post by:
Im trying to install directx 9.0 c , but i simply cant . When i run the installer it just says " The installed components are ready to use". This is the report on directx.log : 09/10/05...
2
by: Akkadian123 | last post by:
Hi guys, I'm a student of c#, and I was wondering how one would take advantage of multimedia in most c# apps/games. I assume one would use directx9, since there doesn't seem to be any support...
2
by: Michael Mayer | last post by:
First of all, sorry for the cross-post. Seems like there should be a managed directx newsgroup. I'm trying to open the following sample application that comes with the DirectX SDK....
6
by: ammd | last post by:
Hi, I installed Microsoft DirectX 9.0 SDK (Summer 2004) but when I create a project and try to add the necessary references I can't find them. Does anybody know where to look for them? BTW, I have VS...
2
by: Diego_Atos | last post by:
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)-
9
by: Mike P | last post by:
Problems, problems... Im trying to create DirectX Projects within C# and to also look at the latest DirectX C# Samples. I have just installed MS Visual C# .net Standard Edition on my Windows...
0
by: Harvey Cohen | last post by:
Hello all, I have some C# code that implements calls to DirectX.DirectSound. It compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003 and VS 2005 on a Compaq laptop (Windows...
14
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
11
by: raylopez99 | last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB of it, but as I read about WPF I wonder: is DirectX obsolete? Should I even bother learning how to use it? After all, the end...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.