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
416 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error on link 14 47
In C# Using WebClient method how to post certificate from file with password 3 32
Video Player 11 23
What namespace do I need to import? 2 29
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

772 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