can we make any control(like edit box) as the standard output device so that the result of the process can b directly shown in that particular edit box without any interaction ..............i think it is possible when we run the procees using createProces() and pass appropriate arguements.......but i am not able to complete it
abidbhat
0
Newbie Poster
Recommended Answers
Jump to PostYou can write one GUI program that contains the edit box and reads the command-line arguments. Then write another program that calls CreateProcess() to launch the GUI program. But why would you want to do that because it is a huge waste of computer resources and time ????
Jump to Postthe simplest way would be to use a streambuf that outputs to the control
the skeleton would be:#include <streambuf> class textbox_streambuf : public std::streambuf { // ... protected: virtual int overflow( int c = traits_type::eof() ) { if ( c != traits_type::eof() ) { char cc …
All 7 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vijayan121
1,152
Posting Virtuoso
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
vijayan121
1,152
Posting Virtuoso
mitrmkar
1,056
Posting Virtuoso
vijayan121
1,152
Posting Virtuoso
vijayan121
1,152
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.