problem on hiding console window

S

shuisheng

Dear All,

Would you please give me a hint on how to hide the console window
opened by _popen?

I appreciate your kind help!

Shuisheng
 
P

Phlip

shuisheng said:
Would you please give me a hint on how to hide the console window
opened by _popen?

You must post to a newsgroup that supports your compiler. This newsgroup is
only qualified to discuss the raw C++ language itself, not its interactions
with all the various windowing systems out there.

Under the wild guess you use Win32, try .
 
V

Victor Bazarov

shuisheng said:
Would you please give me a hint on how to hide the console window
opened by _popen?

What's "the console window"? I can't find any definition of it in
the C++ language standard. What's "_popen"? Not defined either.

Are you sure you're in the right newsgroup?

V
 
E

Earl Purple

Dear All,

Would you please give me a hint on how to hide the console window
opened by _popen?

I appreciate your kind help!

Shuisheng

This is not a standard language feature. _popen is not standard C++.

On UNIX systems (which includes Linux) you can run a process in the
background by putting a & character after the command name.

I think on Windows there's a "ShellExecute" option which will cause no
console window to appear.

Clearly you'll need to redirect standard output (if any is produced) in
either case.

You should check the newsgroups relating to the appropriate operating
systems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top