Re: Opening Large Files

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hmm. It used to be that NotePad would complain and ask me if I wanted to switch to
WordPad. Obviously they've fixed that problem, and I hadn't noticed.

I'd seen references to the 1MB, which is why I qualified it with "I believe", but I don't
have any large files to test it with.

I knew of a couple fancy edit controls from years ago, which is why I suggested a
third-party control. Your pointer looks like a good one.
joe

On Tue, 25 Jul 2006 21:39:05 -0500, "Doug Harrison [MVP]" <dsh@xxxxxxxx> wrote:

On Tue, 25 Jul 2006 19:22:47 -0400, Joseph M. Newcomer
<newcomer@xxxxxxxxxxxx> wrote:

Depends on what you mean by "large" file. 30MB is sort-of-small as files go. You don't
start applying the term "large" until you get to gigabytes

As far as showing it in an edit box, however, an edit box is restricted to 64K

Notepad can open files a lot bigger than that.

and a rich edit control I believe has a limit of 1MB.

That was never the case. However, there is a problem in that its
implementation (in Win2K, at least) of WM_GETTEXTLENGTH is O(n), and
programs like WordPad use that message in UPDATE_UI handlers. So even
moving the cursor around can be really slow in large files, at least back
in the day of P200MMX machines.

So by that definition, your filel is "large".
Unfortunately, I am not aware of any solutions other than buying third-party controls. If
you don't need the ability to select at other than the line level, the virtual listbox
will handle your needs; if you need a real text control, you probably had to investigate
what is out there. I just searched codeproject and didn't find anything that suggested
any extension to rich edit that might handle this.

Scintilla is written from scratch and looks pretty good:

http://www.scintilla.org/
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Multiple router eigrp 65536 - cant delete or edeit
    ... convert the formats and edited with Notepad. ... Also works if you edit the text file in wordpad, or there used to be a ...
    (comp.dcom.sys.cisco)
  • Re: phpMyAdmin setup
    ... I'm going to guess your using windows to edit the file? ... Try opening it ... using Wordpad instead of Notepad. ...
    (alt.php)
  • Re: Clipboard
    ... If it was text that you copied, open up your favorite text application (MS Word, Notepad, WordPad, etc) and select edit> paste or use the Ctrl V keystrokes. ...
    (microsoft.public.windowsxp.accessibility)
  • "save as" in wordpad or notepad creates 0kb file then asks whether to overwrite
    ... If I edit a file from explorer using wordpad or notepad a ...
    (microsoft.public.windowsxp.security_admin)
  • Re: POP UP when trying to edit Stationery files on OE
    ... Notepad like i wanted it too....this is too strange!!... ... POP UP when trying to edit Stationery files on OE ... For over a year i have been able to edit stationery files using Notepad ... I have even gone as far as selecting "choose another program" and then ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)