简体   繁体   中英

How to include a .c file in my XNA project for WP7

I'm developing a game for Windows Phone using the XNA framework. I want to add a .c file to my project, but I'm not getting a solution for it. Can anyone tell me how to add it/access it?

The obvious option would be to reimplement the C method in C# (or VB.Net if you prefer) and call it like that. The apps on Windows Phone are sandboxed, and cannot run any "native" code.

At this moment you have to implement you C code in any language that can be compiled to .Net CF IL (C#, VB.Net, F# etc.). Or you can wait roughly 5 months for WP8 which is very likely to run some C/C++ code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM