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
409 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
  • 2
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
dfiala13 earned 250 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now