Solved

How to make CEdit Text > 32k

Posted on 1998-04-30
6
387 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
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 100 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Macro to save highlighted rows as a separate file 5 43
Expand to include initial dialog with two choices. 9 77
dog bark java program 15 95
Message not shown 5 50
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

776 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