Solved

How to read/write text files > 32K ?

Posted on 1997-06-26
3
199 Views
Last Modified: 2013-11-19
I am using CEditView as my primary text editing control, problem is, if  I use the default serialization code,
((CEditView*)m_viewList.GetHead())->SerializeRaw(ar);

It can only read up to 32KB file size.

How should I do to write a simple editor that can read/write unlimited file size?

I am thinking of taking out the serialization code and use CFile's read/write classes to perform the I/O stuff.  But then I don't know how to let MFC update the window text when reading a file, or write the window's content to a file.

Any ideas?
I am using VC++ 4.2 + Windows 95.
0
Comment
Question by:zrokool
3 Comments
 
LVL 4

Expert Comment

by:mbhakta
ID: 1302335
What version of VC++, OS are you working on ?
0
 

Author Comment

by:zrokool
ID: 1302336
Edited text of question
0
 

Accepted Solution

by:
bola053097 earned 150 total points
ID: 1302337
Have you tried the RichEditCtrl? It basically contains functions
that are a superset of the CEdit control and your code should
be able to run using the RichEditCtrl with very minor modifications.

Of course, it can read files of unlimited sizes...
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

19 Experts available now in Live!

Get 1:1 Help Now