Solved

How to read/write text files > 32K ?

Posted on 1997-06-26
3
215 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
[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
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

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
conditional code and condition difference 9 84
matchUp  challenge 6 76
FizzBuzz challenge 9 84
JQuery serialize and unserialize 8 185
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

761 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