Improve company productivity with a Business Account.Sign Up

x
?
Solved

Adding C# code to a legacy C project

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

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

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.

Join & Write a Comment

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…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…

606 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