Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

migrating from c++

Posted on 2003-10-24
3
Medium Priority
?
189 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 189 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 186 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

604 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