Click here to Skip to main content
15,920,053 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I want to convert source code of Turbo C++ to Visual C++ or Visual C#

How I can do this ?

Thank you !
Posted

Your best bet is to add the code to a C++ project in Visual Studio, hit compile, and then work out the bugs that pop up. On the other hand, converting from C++ to C# is not a trivial task as they are completely different languages and rely on completely different libraries.

You do have a possible third choice, which is to compile your Turbo C++ into a DLL, then call the needed functions from C# via PInvoke[^].
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Apr-12 14:41pm    
Nice suggestions; I agree; my 5.
--SA
Mohibur Rashid 26-Apr-12 22:52pm    
I wonder if turbo c++ support creating dll. I never did though
Mohibur Rashid 26-Apr-12 22:53pm    
yeah it does
With a basic understanding of the C++ (and C#) language. Turbo C++ code is C++ after all, albeit ancient. However, if the original code makes intense use of Turbo C++ libraries (like the BGI) then it could be possibly easier to re-write the application from scratch.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Apr-12 14:41pm    
Agree, my 5.
--SA
CPallini 24-Apr-12 15:29pm    
Thank you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900