Solved

How to make CEdit Text > 32k

Posted on 1998-04-30
6
397 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Smart Camera scanning and reading information 3 127
has22 challenge 11 111
canBalance challenge 34 113
Example code 13 44
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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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