Hello anyone,

I'm playing around with console io and one
problem is driving me nuts. I enabled STDIO over serial
and it works just nice with command processor. However
if I run another application from the command prompt and
this app does console io as well (for instance using "wprintf"
routine) nothing appears in the output. Here is a dump:

---------------------------------------------------------------

Pocket CMD v 5.0
\> dir
Directory of \

01/01/98 04:00a <DIR> Release
12/31/99 04:01p <DIR> My Documents
12/31/99 04:01p <DIR> Program Files
12/31/99 04:01p <DIR> Documents and Settings
12/31/99 04:01p <DIR> Temp
12/31/99 04:01p <DIR> Windows

Found 6 file(s). Total size 0 bytes.
1 Dir(s) 28540468 bytes free

\>hello.exe
\>

---------------------------------------------------------------

hello.exe is just several lines:



#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
{
wprintf(TEXT("Hello World!\n"));
return 0;
}


I'm able to debug all the printf stuff up to the "_putc_lk" routine which I think
must print out the char. However nothing is printed ... Any ideas?

Thanks.

Re: console io by Voidcoder

Voidcoder
Thu Jul 28 18:07:30 CDT 2005

Well, if run the same app manually, not from the
command shell, the message is printed out as expected!
Is this a joke? Does cmd.exe somehow lock output?

My first thought was something is wrong with app
itself, however I've tried "ipconfig" and "ping" and they
both does not produce any output as well.

Any comments?


"Voidcoder" <voidcoder@yahoo.com> wrote in message news:u9RQQU3kFHA.2152@TK2MSFTNGP14.phx.gbl...
> Hello anyone,
>
> I'm playing around with console io and one
> problem is driving me nuts. I enabled STDIO over serial
> and it works just nice with command processor. However
> if I run another application from the command prompt and
> this app does console io as well (for instance using "wprintf"
> routine) nothing appears in the output. Here is a dump:
>
> ---------------------------------------------------------------
>
> Pocket CMD v 5.0
> \> dir
> Directory of \
>
> 01/01/98 04:00a <DIR> Release
> 12/31/99 04:01p <DIR> My Documents
> 12/31/99 04:01p <DIR> Program Files
> 12/31/99 04:01p <DIR> Documents and Settings
> 12/31/99 04:01p <DIR> Temp
> 12/31/99 04:01p <DIR> Windows
>
> Found 6 file(s). Total size 0 bytes.
> 1 Dir(s) 28540468 bytes free
>
> \>hello.exe
> \>
>
> ---------------------------------------------------------------
>
> hello.exe is just several lines:
>
>
>
> #include <windows.h>
>
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
> {
> wprintf(TEXT("Hello World!\n"));
> return 0;
> }
>
>
> I'm able to debug all the printf stuff up to the "_putc_lk" routine which I think
> must print out the char. However nothing is printed ... Any ideas?
>
> Thanks.
>
>
>