Mark Yedinak Posted February 6, 2009 Report Share Posted February 6, 2009 How can I write data back out to standard out from a built application? I have a stand-alone executable that takes command line arguments and I want to be able to write an error message back out to standard out if the command line arguments are invalid. How can this be done? Quote Link to comment
Phillip Brooks Posted February 6, 2009 Report Share Posted February 6, 2009 Is your stand alone app (exe) a console app or a GUI? I remembered this post on the dark side... using stdin/stdout with LabVIEW Quote Link to comment
Mark Yedinak Posted February 6, 2009 Author Report Share Posted February 6, 2009 QUOTE (Phillip Brooks @ Feb 5 2009, 12:49 PM) Is your stand alone app (exe) a console app or a GUI?I remembered this post on the dark side... http://forums.ni.com/ni/board/message?board.id=170&message.id=183497' target="_blank">using stdin/stdout with LabVIEW This is a GUI application which needs to be able to be run from the command line. Essentially this is a tool that can be used by a person sitting down and interacting with it or it can be invoked automatically and run in a non-interactive mode. Since we need command lines arguments to support this functionality I would line to be able to print an error message back out to the command prompt if the command line arguments are incorrect. I suppose I could display a dialog box with the error message but it seems to be much more straightforward to simply print the message out to the command line. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.