Re: PostMessage() Error
- From: "Alexander Grigoriev" <alegr@xxxxxxxxxxxxx>
- Date: Sun, 25 Feb 2007 21:45:08 -0800
There may also be a limit for shared memory section size for such
inter-process SETTEXT call.
"Scott McPhillips [MVP]" <org-dot-mvps-at-scottmcp> wrote in message
news:uwasGsEWHHA.3568@xxxxxxxxxxxxxxxxxxxxxxx
one2001boy@xxxxxxxxx wrote:
PostMessage() has a limit of 10,000 byte message in Microsoft on-line
doc. SendMessage() does not have suca a limit in its on-line doc.
It looks that it doesn't make any difference.
No, you are misunderstanding what the doc says. It says the queue is
limited to 10,000 messages. But you only need one WM_SETTEXT message to
post a string of any desired length. That is because the message contains
only a pointer - it does not contain the string.
if using WM_SETTEXT instead of WM_CHAR, both small and large data
doesn't look get sent correctly.
Show your code. You might be doing something wrong.
i = SendMessage(hwnd, WM_SETTEXT, NULL, pc);
is used.
Not sure if there are something missed in the function?
thanks.
Not enough code to diagnose your problem. Give us more code and a more
precise description of exactly what you see happens.
--
Scott McPhillips [VC++ MVP]
.
- References:
- PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: David Webber
- Re: PostMessage() Error
- From: Igor Tandetnik
- Re: PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: Igor Tandetnik
- Re: PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: Alexander Grigoriev
- Re: PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: Igor Tandetnik
- Re: PostMessage() Error
- From: one2001boy@xxxxxxxxx
- Re: PostMessage() Error
- From: Scott McPhillips [MVP]
- PostMessage() Error
- Prev by Date: Re: identifier not found error, undeclared identifier
- Next by Date: Re: identifier not found error, undeclared identifier
- Previous by thread: Re: PostMessage() Error
- Next by thread: Re: PostMessage() Error
- Index(es):
Relevant Pages
|