Is it neccesary to ever define more than one output or input handle in a Win32 Console program?

Recommended Answers

All 5 Replies

Sure. What if you want to work with a file as well as standard input and output?

Sure. What if you want to work with a file as well as standard input and output?

I thought files had their own handle???

Yes. Hence, more than one handle. ;)

Meh. I suppose I need to rephrase my original question.

Is it ever necessary to define more than one of the same Handle?

You mean, is it ever necessary to have two handles to the console? No, not really.

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.