Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4091842
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:25:02+00:00 2026-05-20T19:25:02+00:00

How to get the output of a Executable made in C++ in Rich text

  • 0

How to get the output of a Executable made in C++ in Rich text Box in C#?

The question is self explanatory, but just to add on further.

Say for i run a compiled program whose output is:

Made by C++

Now i want the output of this program (which is console based) in my Rich text Box in C#.

If the program name is:

example.exe

How do i do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T19:25:03+00:00Added an answer on May 20, 2026 at 7:25 pm

    Usually when you spawn a process you’re able to get it’s stdout and stderr descriptors.
    So use appropriate class to spawn example.exe process and read it’s stdout and err.

    Use following classes:

    ProcessStartInfo
    Process 
    
    //then Process method would do the trick
    proc.StandardOutput.ReadToEnd();
    

    EDIT
    I’ve found following example on net:

    process.StartInfo.UseShellExecute = false;
    process.StartInfo.RedirectStandardOutput = true;
    process.OutputDataReceived += (sender, args) => Console.WriteLine("received output: {0}", args.Data);
    process.Start();
    process.BeginOutputReadLine();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently trying to get the output of an executable console-app into an other
I am able to get the output format that I need, but not the
When running the following code I get no output but I cannot work out
Is it possible to get an output of an Exec 'ed executable? I want
I ran truss command on executable and get the below output: stat64(/net/xyzmachine/vol/tools/solx64/studio11/SUNWspro/lib/rw7/librt.so.1, 0x080474A0) (sleeping...)
I need to get content of executable comments in mysqldump results, but for regexp
I get output files from very old Fortran programs, which look like: 0.81667E+00 -0.12650E+01
How can I get output from Java anonymous classes? In .Net I would use
For example, how do I get Output.map from F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map
I get different output when mocking a class once and when mocking a class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.