Re: PostMessage() Error
- From: "one2001boy@xxxxxxxxx" <one2001boy@xxxxxxxxx>
- Date: Thu, 22 Feb 2007 21:21:55 -0800
Thanks so much for all of your help.
Here is the problem with Microsoft GUI application. It doesn't take the
standard input from pipe.
the problem is summarized as the following:
int main()
{
.....
while (fgets(psBuffer, BUFFER_SIZE, stdin) != NULL) {
PostString(hwndText, psBuffer);
}
.....}
void
PostString(HWND hwnd, char *pc)
{
while(*pc) {
PostMessage(hwnd, WM_CHAR, (unsigned char) *pc, 1L);
pc++;
}
}
it get the problem of ERROR_NOT_ENOUGH_QUOTA for the function of
PostMessage() after processing 4k of stdin piped data ( I have 14K of
stdin data to process)
I have been thinking use string instead of char to resolve the problem.
Maybe it is not helpful. Also, tried WaitForInputIdle() to slow down PostMessage() after 1000 characters, it doesn't help.
Any suggestions?
.
- Follow-Ups:
- Re: PostMessage() Error
- From: Igor Tandetnik
- Re: PostMessage() Error
- References:
- PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: David Webber
- Re: PostMessage() Error
- From: Igor Tandetnik
- PostMessage() Error
- Prev by Date: Re: static variables discarded by the VS.NET2003 linker
- Next by Date: Re: Variable arguments & class objects... what's the "type"
- Previous by thread: Re: PostMessage() Error
- Next by thread: Re: PostMessage() Error
- Index(es):
Relevant Pages
|