?
Solved

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

Posted on 2004-04-18
4
Medium Priority
?
424 Views
Last Modified: 2008-02-07
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
Comment
Question by:lemcgee
[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
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
dfiala13 earned 1000 total points
ID: 10856018
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
 
LVL 12

Expert Comment

by:dfiala13
ID: 10856285
Should be System.Diagnostics.Process class in the System.Diagnostics namespace
0
 

Author Comment

by:lemcgee
ID: 10856326
Thanks, I will give this a try.
0
 

Author Comment

by:lemcgee
ID: 10856516
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

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

718 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