flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
mns
Is there a way to dispay a disired part of a file in RichEdit control.
for example , from a "===============================" part to next same like part in attached file. ![]()
|
|||||||||||
![]() |
|
mns
here with code(attached with this),I could show whole txt file in a RichEdit controle.But now I want to show part of the txt file in Rich edit control.For that can I use same methode or Is there are way in winAPI.Please someone help
![]()
|
|||||||||||
![]() |
|
JohnFound
Very strange method of loading text in the RichEdit...
Why not to read the whole file into the memory and then to use WM_SETTEXT to set the control text. |
|||
![]() |
|
mns
|
|||
![]() |
|
mns
According to Iczelion's Win32 Assembly tutorial
http://win32assembly.online.fr/tut33.html WM_SETTEXT methode may not be efficient if the file is large.It recommend EM_STREAMIN message. Any way my problem is how to select desired part of the file and loading it to RichEdit.Please help?? |
|||
![]() |
|
mns
thank you very much JohnFound.I'll try with SetFilePointer methode.
|
|||
![]() |
|
shutdownall
mns wrote: According to Iczelion's Win32 Assembly tutorial What was the date of this tutorial creation and what is large and what is fast ? ![]() A modern PC can read up 1 GByte in memory with DDR3 RAM in less than one second (theoretical value). Modern SATA disks can read 150 MByte/s or more. What WIN internally does is another thing but I would try first. And I never found text files with a few hundred mega bytes which have to be read or edited. Maybe some large logfiles but there are concepts to build them daily. I would first try and not believe all what the tutorial says about large files. Whatever a large file is. ![]() |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.