J
jacob navia
One of the many questions asked by people is that even if they write
into standard output, the output doesn't show in the screen. This
happens in windows systems since quite a long time.
To avoid this, you should open a console before outputting anything
into standard output. You do this with
void AllocConsole(void);
When you do not want to use the console any more (and you do not
want the ugly black window hanging around) you just do:
BOOL WINAPI FreeConsole(void);
The operating system opens up a console for all programs that
have the bit of "console application" set in the executable. That is
why you do NOT needto open a console for those programs. Programs
that need this are only programs that were compiled with the
"subsystem windows" bit set.
-------------------------------------------------------------------
You find this off topic for clc?
You can go to hell. There, you can complain to the boss.
You find me obnoxious?
You can go to heaven and complain there to the boss.
into standard output, the output doesn't show in the screen. This
happens in windows systems since quite a long time.
To avoid this, you should open a console before outputting anything
into standard output. You do this with
void AllocConsole(void);
When you do not want to use the console any more (and you do not
want the ugly black window hanging around) you just do:
BOOL WINAPI FreeConsole(void);
The operating system opens up a console for all programs that
have the bit of "console application" set in the executable. That is
why you do NOT needto open a console for those programs. Programs
that need this are only programs that were compiled with the
"subsystem windows" bit set.
-------------------------------------------------------------------
You find this off topic for clc?
You can go to hell. There, you can complain to the boss.
You find me obnoxious?
You can go to heaven and complain there to the boss.