Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: EDITSTREAM dwError values

Started 1 year, 5 months ago by TwangGuru
Does anyone know where the error return values for the EM_STREAMIN message might be documented? The return from SendMessage() is non zero (number of characters streamed) but the value of dwError is -6. The file's content language is Dhivehi. As far as I can determine, the file is correctly streamed. The return value is NOT from our callback -- it has no possible return but 0 in this case. Any ...
Site: CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions  CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions - site profile
Forum: C++ and WinAPI  C++ and WinAPI - forum profile
Total authors: 2 authors
Total thread posts: 3 posts
Thread activity: no new posts during last week
Domain info for: codeguru.com

Other posts in this thread:

TwangGuru replied 1 year, 4 months ago
Though nobody seems to have had any idea at all about this, I made a startling discovery and I'll post it just in case someone else ever has a bizarre problem with streaming in text to a rich edit control. The Windows error that I was encountering has still not been documented, but I discovered source of the error by painful "trail and error" substitution of characters in the original RTF ...

Beekeeper replied 1 month, 3 weeks ago
You may have exceeded the limit of the 32K richedit control buffer. To increase the buffer: lResult = SendMessage (hWndEdit_, EM_EXLIMITTEXT, 0, (LPARAM) 0x80000); // 512K buffer To find out what error you have, try this: if (es.dwError) ShowErrorStr(TEXT("EM_STREAMIN"), es.dwError); void ShowErrorStr(LPTSTR lpszFunction, DWORD dw) { // Retrieve the system ...

 

Top contributing authors

Name
Posts
TwangGuru
3
user's latest post:
EDITSTREAM dwError values
Published (2008-08-27 10:31:00)
Though nobody seems to have had any idea at all about this, I made a startling discovery and I'll post it just in case someone else ever has a bizarre problem with streaming in text to a rich edit control. The Windows error that I was encountering has still not been documented, but I discovered source of the error by painful "trail and error" substitution of characters in the original RTF as well as tedious tracing...
Beekeeper
1
user's latest post:
EDITSTREAM dwError values
Published (2009-11-11 16:38:00)
You may have exceeded the limit of the 32K richedit control buffer. To increase the buffer: lResult = SendMessage (hWndEdit_, EM_EXLIMITTEXT, 0, (LPARAM) 0x80000); // 512K buffer To find out what error you have, try this: if (es.dwError) ShowErrorStr(TEXT("EM_STREAMIN"), es.dwError); void ShowErrorStr(LPTSTR lpszFunction, DWORD dw) { // Retrieve the system error message for the last-error code LPVOID lpMsgBuf; LPVOID...

Related threads on "CodeGuru Forums - A Developer.com Community for C++, C#, VB, Java and .NET Solutions":

Related threads on other sites:

Thread profile page for "EDITSTREAM dwError values" on http://www.codeguru.com. This report page is a snippet summary view from a single thread "EDITSTREAM dwError values", located on the Message Board at http://www.codeguru.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity