?
Solved

System.Drawing in XNA

Posted on 2011-03-22
1
Medium Priority
?
616 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

770 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