Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding C# code to a legacy C project

Posted on 2004-09-02
4
Medium Priority
?
182 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 150 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 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

876 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