[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 184
  • Last Modified:

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?
0
SparrowVideo
Asked:
SparrowVideo
  • 2
1 Solution
 
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

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now