I’ve got a problem with windows consoles… In windows api, does a console always has to be a screen or a keyboard or can it be any character buffer or something like a text file ?
thanx
If I be more specific, SetConsoleMode fnction in windows api has a parameter called hConsoleHandle which has a flag called ENABLE_ECHO_INPUT that can be used to echo every character we read to the screen.. So I thought in windows system programming, Console means something more than it’s normal meaning… So am I write and if so what is the true meaning..?
thanx again
No, a “console” implies an application that has a text-based interface.
Win32 Console on Wikipedia says that that label specifies a text mode program that runs under the Windows API, and would use, for example, a function like
WriteConsoleinstead ofprintforcout.So, the console’s the same, but the underlying library is different.