Solved

How to read/write text files > 32K ?

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Named range not carried over 10 70
Complete beginner needs help making a cron job 9 133
isEverywhere  challenge 19 91
Use of condition with 'serial' in ansible 2 101
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.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

734 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