Solved

Adding C# code to a legacy C project

Posted on 2004-09-02
4
176 Views
Last Modified: 2010-04-15
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
Comment
Question by:SparrowVideo
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
jimwasson earned 50 total points
ID: 11970112
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
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11974415
0
 
LVL 9

Expert Comment

by:glsac
ID: 11984298
Greg-

I don't think you can do that with C#...only Managed C++...right?
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11984641
you can call the C# though ... aand in 2005 remember tht you can interchange languages.
0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SqlDataBase 7 54
What can cause the styling on a .NET site to not be found? 17 29
Where did System.Data.Objects go? 2 41
Cant save 3D 4 23
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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