Adding C# code to a legacy C project

OK,

I have inherited a 10-15 year old C project.  It compiles and runs fine using MS Dev Env 2003 Version 7.1

I would like to start adding some new functions, er, methods, using C#.  Is it possible to intermix C# code with C ?  Is there some magic Paragma statement that will keep the linker happy?
SparrowVideoAsked:
Who is Participating?
 
jimwassonCommented:
No there isn't. Your best option may be to package he old 'C' project as a dll and call it from your new C# program.
0
 
glsacCommented:
Greg-

I don't think you can do that with C#...only Managed C++...right?
0
 
gregoryyoungCommented:
you can call the C# though ... aand in 2005 remember tht you can interchange languages.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.