Solved

migrating from c++

Posted on 2003-10-24
3
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

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…
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

707 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