Solved

migrating from c++

Posted on 2003-10-24
3
183 Views
Last Modified: 2010-04-16
we have a fairly sizeable application (3 million + lines of code) in C++ / win32 api compiled into a single exe.  We also have several of our own custom and 3rd party libraries and dll's mixed in.  There are many features of c# that we would like to take advantage of.  Is this possible without rewriting our entire application (something that is not going to happen)?  
0
Comment
Question by:marvinm
3 Comments
 
LVL 15

Accepted Solution

by:
SRigney earned 63 total points
ID: 9616696
Well, C# does have the ability to create .dlls that are compatible with COM, if you are looking to rewrite some of the external .dlls then you can probably do that in c#, and would have to change some references to point to the new C# ones.

I don't think that it's usercontrols would interact very nicely with the existing C++ code, and I doubt that you can write subsets of your GUI in C#.  But you probably can use it for backend work if you like.

I'm not the end-all be-all resource on it, though, so don't take it as an absolute negative.
0
 
LVL 22

Assisted Solution

by:_TAD_
_TAD_ earned 62 total points
ID: 9616799


I guess it depends on what C# functionality you want to take advantage of.

I suppose you could create C# dlls and then have your C++ program use them, but I don't know of any functionality in C# that can't be done in C++.  With the exception of Garbage collection, but .Net garbage collection only works on managed code (code written in a .Net language), garbage collection does NOT work on unmanaged code (code written in anything other than a .net language).


What kinds of functionality do you want to take advantage of?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

943 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

6 Experts available now in Live!

Get 1:1 Help Now