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 4 9101
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
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.NO SPAM> wrote in message
news:Ov******** ******@TK2MSFTN GP10.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
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.NO SPAM> wrote in message news:Ov******** ******@TK2MSFTN GP10.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
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:\WI NDOWS\assembly\ GAC\Microsoft.D irectX\...
\Microsoft.Dire ctX.dll
/reference:C:\WI NDOWS\assembly\ GAC\Microsoft.D irectX.Direct3D \...
\Microsoft.Dire ctX.Direct3D.dl l Vertices.cs
Thanks once again for your time and help.
Junaid
"Sherif ElMetainy" <el************ *@wayout.net.NO SPAM> wrote in message
news:eD******** ******@tk2msftn gp13.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.NO SPAM> wrote in message news:Ov******** ******@TK2MSFTN GP10.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 >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 23:24:44: dsetup32: === SetupForDirectX() start ===
09/10/05 23:24:44: dsetup32: DXSetupCommand = 0.
09/10/05 23:24:44: DXSetup: DSetupCallback(): Phase = 0, Steps = 0
09/10/05 23:24:44: dsetup32: DirectXSetupIsJapanese == 0
09/10/05 23:24:44: dsetup32:...
|
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 for audio, video, etc in c# itself (correct me
if im wrong there).
What is the best way to learn directX, especially for c#? Can anyone recommend
any good books?
|
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.
C:\DXSDK\Samples\C#\AudioVideo\Bin\csAVPlayer.exe
It will not play some of the samples shipped with the SDK. It either
completey hangs the application (and I have to use Windows Task Manager to
kill it) or sometimes it displays an error message. Below...
|
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 2002. Don't know if there's an incompatibility issue. Thanks.
|
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)-
| |
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 XP
Pro PC and I then installed the full DirectX 9.0 SDK (Summer 2004) & then the
latest DirectX 9.0 SDK (Feb 2005)
Spent several hours doing all this but there are NO DirectX C# sample
|
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 XP Home), a Dell Xeon
workstation (Windows XP Pro) and a Gateway GM 825 (Windows XP Media
Center). It also runs on the Dell and the Compaq under VS 2005, but
when I attempt to run the code under VS 2005 on the Gateway (Windows XP
MCE), I get...
|
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.
|
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 user must
have the DirectX library installed on their PC before they can use any
video playing program you write.
Does WPF even use DirectX? Or are the functions of DirectX (mostly
video and graphics stuff, possibly accelerated via software...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |