The limit is 64k, as we all know. How can I extend the limit? I did it in another Basic dialect, but I don't know how in C++. Please help if possible.
The limit is 64k, as we all know. How can I extend the limit? I did it in another Basic dialect, but I don't know how in C++. Please help if possible.
Personally I use TRichEdit instead of TMemo. There is no problem with going up to 1MB with TRichEdit. Never found a way to exceed 1MB though.
You see, I'm making a notepad clone, so I want to stay true to it by using a memo component. I don't like richedit because you need a specific dll for each version. Plus, 1MB is still not enough. Thanks for replying anyway.
Do not suppose. It is only a kind of editbox and system defined size is 64K. Did you see any instance? If any let me know please.
Here is a way to set the text size limit in RichEdit, and that is to use the SendMessage to send a message to the EM_LIMITTEXT.
>Here is a way to set the text size limit in RichEdit, and that is to use the SendMessage to send a message to the EM_LIMITTEXT.
I tried that approach. However, I found that the size limit is automatically set back 1MB on (many) subsequent calls to the TRichEdit edit component. Could never figure out how to get around that.