Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to make CEdit Text > 32k

Posted on 1998-04-30
6
Medium Priority
?
400 Views
Last Modified: 2013-11-19
the CEdit text buffer is limited in 32k, how to extend CEditView class to accept large file, I think to detect when read to the end of the buffer, then load the other part.
But how to do it, how to make the Edit control to realize large memory?
Thanks!
0
Comment
Question by:dutong
6 Comments
 
LVL 4

Expert Comment

by:piano_boxer
ID: 1304487
The solution is to switch to the RichEdit control. It has no upper limit.
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1304488
  The Rich Edit control is the only solution, if you need more than 64KB.  The single line edit control has a max of 32K, while a multiple line Edit Control has a max of 64KB...

   There is a Knowledge Base article on how to allocate a buffer and make the Edit Control use that buffer, so that you can get the whole 64KB limit.

-=- James.
0
 

Author Comment

by:dutong
ID: 1304489
I know the limitation of CEdit, it hold a local heap handle, so can not make the file large,
My question is : can I use the CEdit display and help it to manage the memory
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:jtwine100697
ID: 1304490
  Yes, you can...  If you search the Microsoft Knowledge base, (and the online documentation), there is information on how to allocate a new buffer, and set it.

-=- James.
0
 
LVL 1

Accepted Solution

by:
fwilkinson earned 200 total points
ID: 1304491
0
 
LVL 4

Expert Comment

by:jtwine100697
ID: 1304492
  The article that "fwilkinson" suggested has what I discussed..  You basically allocate a buffer for the Edit Control, and tell it to use the new Buffer.

-=- James.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month12 days, 2 hours left to enroll

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question