Jump to content

To provide input to an application through a C++ routine

- - - - -

  • Please log in to reply
2 replies to this topic

#1
ankur.mittal

ankur.mittal

    Newbie

  • Members
  • Pip
  • 3 posts
Can anyone tell me how i can get the below stated problem:

Say i have an application abc.exe which accepts some input and gives the output.
I want to make some c++ or c routine to provide input through that routine to the application.

I want this help to manipulate some results in an application that i get in loop of program.

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
It depends on the details of HOW abc.exe accepts input and provides output.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
kernelcoder

kernelcoder

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
  • Location:Dhaka
  • Programming Language:C, Java, C++, C#, Visual Basic .NET
  • Learning:Objective-C, PHP, Python, Delphi/Object Pascal
System::Diagnostics::Process^ process = gcnew System::Diagnostics::Process();
process->StartInfo->FileName = "Full Path of your abc.exe application";
process->StartInfo->Arguments = "Arguments that your to provide to your abc.exe";
process->Start();

/* if your abc.exe reads from standard input stream, use process->StandardInput property
* to write to the input-stream of the process.
*/

/* To read process output from standar output stream, use process->StandardOutput property
* to read from the output-stream of the process.
*/




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users