C dos program into C#

  • Thread starter Thread starter Dmension
  • Start date Start date
D

Dmension

I wokring on a project that was assigned to me. It is a sink or swim
situation. I want to convert a C based dos program into C# visual program.
Is this possible.
 
It depends what it does exactly, what is a DOS program by the way, for me
DOS means 16 bit and free access to HW. If it runs as is on Windows 98 or
higher it should be possible to port to C#.


Willy.
 
I will start with understanding what that C application does. Then break it
down into managable methods. Now communication with hardware is by itself
will need some help if you are not familier with C#. Assuming it is network
application, creating sockets etc is very simple in C# (see System.Net ns).
As you go along this conversion you can keep on asking questions on NG if
you are stuck some place.

best of luck.
 
Dmension said:
commnicates with some hardware. How do I go about starting this task..

That might be very hard. Does it do port i/o? If so, it may simply be
impossible to run it under Windows without special drivers. You can get
special drivers for parallel and serial ports at www.lvr.com.

Why does it need to be converted? Because it doesn't run under Windows
as-is? If it runs correctly in a DOS box under Windows, your task is going
to be much easier.
 
Thanks Po, I appreciate the help..
Pohihihi said:
I will start with understanding what that C application does. Then break it
down into managable methods. Now communication with hardware is by itself
will need some help if you are not familier with C#. Assuming it is network
application, creating sockets etc is very simple in C# (see System.Net ns).
As you go along this conversion you can keep on asking questions on NG if
you are stuck some place.

best of luck.
 
Well it does run on Windows enviornment, but we are trying to update it with
Gui elements and so forth. I does communicate via comport, and yes I know
it will be a considerable amount of work to get it going, but best
experience is hands on..(at least so they say).
It is an exe program that communicates to some hardware controllers, via com
port. and a specific address configured on Hardware end. The visual aspect
of it is very dos orientated. I was given the task of modifying it and
making it more user friendly. As well as adding more features to check for
correct data going back and forth from software to hardware...
SOunds like fun for a newbie right...
 
Back
Top