Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I would like to make a 360 game and was just wondering if I could re-use some existing C code I have or whether I need to re-write everything in C#. Any help is appreciated.

share|improve this question
add comment

2 Answers

up vote 12 down vote accepted

Yes and no.

Officially, the only thing you can use on the 360 with XNA is C#. You can't ship any unmanaged DLLs with an app on xbox live, and if you want to write your game in C, you need a dev kit and an impossible-to-get contract with Redmond.

That said, anything you can compile into CIL that will run on the compact framework will be okay. If you can convince your code to compile as managed c++, you should be able to get it to work.

share|improve this answer
1  
Additionally, you can do just about anything you want from a Windows XNA Game. The requirement of no unmanaged code is XBOX (and WP7) only. –  Nate May 25 '11 at 18:50
    
@Nate yep, absolutely correct. –  David Lively May 28 '11 at 20:00
add comment

its better to use C#. bacause that using C# will not cause unknow problems.

however, Yes, it can cll C functions.

share|improve this answer
3  
-1 because you didn't really elaborate on any of your points. "unknow [sic] problems": what kind? "can cll [sic]": how? –  Tetrad Apr 24 '11 at 16:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.