Solved

Adding C# code to a legacy C project

Posted on 2004-09-02
4
175 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
Comment Utility
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
Comment Utility
0
 
LVL 9

Expert Comment

by:glsac
Comment Utility
Greg-

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

Expert Comment

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

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now