Solved

migrating from c++

Posted on 2003-10-24
3
182 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

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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

757 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

16 Experts available now in Live!

Get 1:1 Help Now