Solved

System.Drawing in XNA

Posted on 2011-03-22
1
609 Views
Last Modified: 2012-05-11
Hello experts,

I am writing a simple game for Win7 for mobile phones using XNA.

I try to re- use file with methods created for software working in Windows environment.

I added it to my XNA project but following lines give me error messages:

using System.Drawing;
using System.Windows.Forms;

I get error: "The type or namespace name 'Drawing' does not exist in the namespace 'System' (are you missing an assembly reference?)

What do I do wrong?
Maybe it is not possible to use these namespaces in XNA application?

Thank you

panJames
0
Comment
Question by:panJames
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 500 total points
ID: 35196431
You can't use System.Drawing for XNA because part of its target is the XBox which does not support those libraries.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question