Solved

How to make CEdit Text > 32k

Posted on 1998-04-30
6
381 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
Comment Utility
The solution is to switch to the RichEdit control. It has no upper limit.
0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  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
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  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
Comment Utility
0
 
LVL 4

Expert Comment

by:jtwine100697
Comment Utility
  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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now