• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 428
  • Last Modified:

How can I create a Visual C# GUI that will luanch and interact with a "C" Windows console application?

I have a structured, multi-threaded, C, Windows console application that I would like to convert to OO C# with a GUI.  However, the approach I would like to take is to build the GUI first and have it interact with the existing consloe application which runs as an .exe.  I would like to send the messages that currently are sent to the stdout to the .Net GUI assuming minimal modifications to the console application.  I need to buy time to learn C# before converting the more complex console application.  I am having some success using VS.Net and building small GUIs.

Can I launch a Windows .exe from a .Net C# GUI and accomplish what I want to do?

Thanks for any help or advice you can offer.
0
lemcgee
Asked:
lemcgee
  • 2
  • 2
1 Solution
 
dfiala13Commented:
Take a look at the System.DiagnosticsProcess namespace.  You can start up a process (exe, bat), read its stdout, etc...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsProcessClassTopic.asp

0
 
dfiala13Commented:
Should be System.Diagnostics.Process class in the System.Diagnostics namespace
0
 
lemcgeeAuthor Commented:
Thanks, I will give this a try.
0
 
lemcgeeAuthor Commented:
This was just what I needed to get started.  I know that I will encounter other issues along the way to a complete solution but I am on my way.

Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now