Click here to Skip to main content
15,905,073 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a program written in C and running in DOS. Is there any simple way to move this program to C# (without completely re-writing the program)? By moving I mean changing in the user interface and the way of showing results (as it is in any standard Windows application).
Thanks in advance.
Posted

Transforming the former application in a DLL, you may expose the C-program functionality to the C# user interface.
:)
 
Share this answer
 
You can write a Console app in C# - have a look at the System.Console class.

If you want a real Windows application, then no - there is no simple way. You will have to rewrite the user interface.

Nick
 
Share this answer
 

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