473,387 Members | 1,517 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,387 software developers and data experts.

Problem compiling program in VS2005 with directx

I am getting this error when I try to compile
The type 'Microsoft.DirectX.Direct3D.Device' exists in both
'c:\WINDOWS\Microsoft.NET\DirectX for Managed
Code\2.0.0.0_x86\Microsoft.DirectX.dll' and 'c:\WINDOWS\Microsoft.NET\DirectX
for Managed Code\1.0.2902.0\Microsoft.DirectX.Direct3D.dll' C:\Documents and
Settings\johnw\My Documents\Visual Studio
2005\Projects\example\example\example.cs

This a a new application with only a couple of lines of code.
Mar 6 '06 #1
1 1547
Try to remove one of this dll from project references

"John230873" wrote:
I am getting this error when I try to compile
The type 'Microsoft.DirectX.Direct3D.Device' exists in both
'c:\WINDOWS\Microsoft.NET\DirectX for Managed
Code\2.0.0.0_x86\Microsoft.DirectX.dll' and 'c:\WINDOWS\Microsoft.NET\DirectX
for Managed Code\1.0.2902.0\Microsoft.DirectX.Direct3D.dll' C:\Documents and
Settings\johnw\My Documents\Visual Studio
2005\Projects\example\example\example.cs

This a a new application with only a couple of lines of code.


--
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Mar 6 '06 #2

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

Similar topics

2
by: _R | last post by:
I've tried generating a couple console apps under VS2005 b2. The debugger brings up a window, but no output from WriteLine. ReadLine also seems to hang. Programs run fine outside of VS2005. ...
1
by: _R | last post by:
I'm porting an old app from VC++6 to .NET and need to update the bitblt functions from DibSection to managed code. The older functions ran fine but I may as well opt for the fastest, most...
13
by: kamaraj80 | last post by:
Hi I am using the std:: map as following. typedef struct _SeatRowCols { long nSeatRow; unsigned char ucSeatLetter; }SeatRowCols; typedef struct _NetData
4
by: musosdev | last post by:
Hi peeps I've just moved my dev system to Win2k3 / VS2005 (from Win2k/VS2k3) and I'm having a problem. I've setup a new website in IIS, enabled .net, fpse, etc. From VS2005, if I choose...
1
by: Ben Fidge | last post by:
Can anyone shed some light on why compiling and running web-apps is so slow in VS2005. I have a solution with 3 web-apps, 20 or so library projects and several winforms apps. All in all it totals...
0
by: the.frapster | last post by:
HI, I hope you all can help me, or at least point me in the right direction. I am not a programmer, I am just trying to help some students in a programming class with this issue, I am the lab...
2
by: john.placais | last post by:
Hello generous helper! I am trying to figure out how to port my code from 32-bit VC++ 6.0 to unmanaged C++ 64-bit VS2005. I have found the preprocessor definition changes and the linker changes,...
0
by: Jovo Mirkovic | last post by:
Hi, Any Windows action which minimizes all windows (win + D, ctrl + alt + del) is causing program error I have two forms: Form1 is shown on primary monitor on dual head graphics display
2
by: RedLars | last post by:
Hi, Need some advice on debugging the static code analysis (fxcop) service in vs2005 teamsenter. In our solution any fxcop fault is configured to result in a compiler error. On all development...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...

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.