Click here to Skip to main content
16,006,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read a locked file. Pin
jspano1-May-03 7:52
jspano1-May-03 7:52 
GeneralRe: Read a locked file. Pin
Neville Franks1-May-03 12:06
Neville Franks1-May-03 12:06 
GeneralRe: Read a locked file. Pin
jspano1-May-03 13:47
jspano1-May-03 13:47 
GeneralRe: Read a locked file. Pin
Neville Franks1-May-03 14:37
Neville Franks1-May-03 14:37 
GeneralRe: Read a locked file. Pin
jspano2-May-03 1:30
jspano2-May-03 1:30 
GeneralRe: Read a locked file. Pin
Neville Franks2-May-03 7:16
Neville Franks2-May-03 7:16 
GeneralRe: Read a locked file. Pin
jspano2-May-03 7:19
jspano2-May-03 7:19 
GeneralRe: Read a locked file. Pin
Neville Franks2-May-03 7:29
Neville Franks2-May-03 7:29 
ED uses a propriety database style system where it has instant access to any line and lines can grow or shrink, be deleted or inserted as required (ie. be edited).

If you just need to read the file then I'd definitely use a memory mapped file (mmf). You could build a simple STL vector<> with pointers to the start of each line. Have a look at the article here on CP on PugXML where you will see code I've added to read the XML file using mmf.

Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
GeneralRe: Read a locked file. Pin
John R. Shaw2-May-03 21:44
John R. Shaw2-May-03 21:44 
QuestionHow to add ODBC driver and DSN in InstallShield for VC++ 6 Pin
ElizabethC1-May-03 6:54
ElizabethC1-May-03 6:54 
AnswerRe: How to add ODBC driver and DSN in InstallShield for VC++ 6 Pin
Anonymous1-May-03 7:30
Anonymous1-May-03 7:30 
GeneralRe: How to add ODBC driver and DSN in InstallShield for VC++ 6 Pin
ElizabethC1-May-03 8:34
ElizabethC1-May-03 8:34 
GeneralRefresh part of the screen. Pin
Nnamdi Onyeyiri1-May-03 6:37
Nnamdi Onyeyiri1-May-03 6:37 
GeneralRe: Refresh part of the screen. Pin
valikac1-May-03 7:27
valikac1-May-03 7:27 
GeneralRe: Refresh part of the screen. Pin
Nnamdi Onyeyiri1-May-03 8:12
Nnamdi Onyeyiri1-May-03 8:12 
GeneralRe: Refresh part of the screen. Pin
Brian Shifrin1-May-03 11:39
Brian Shifrin1-May-03 11:39 
GeneralPolygon holes Pin
shao_lo1-May-03 6:19
shao_lo1-May-03 6:19 
GeneralRe: Polygon holes Pin
Phil Hamer1-May-03 14:27
Phil Hamer1-May-03 14:27 
GeneralRe: Polygon holes Pin
John R. Shaw2-May-03 22:04
John R. Shaw2-May-03 22:04 
Questiondelete or unlink? Pin
Dominik Reichl1-May-03 5:41
Dominik Reichl1-May-03 5:41 
AnswerRe: delete or unlink? Pin
David Crow1-May-03 5:45
David Crow1-May-03 5:45 
AnswerRe: delete or unlink? Pin
markkuk1-May-03 12:40
markkuk1-May-03 12:40 
GeneralRedrawing windows that don't have focus Pin
Darren Steadman1-May-03 5:29
Darren Steadman1-May-03 5:29 
GeneralRe: Redrawing windows that don't have focus Pin
valikac1-May-03 7:28
valikac1-May-03 7:28 
GeneralRe: Redrawing windows that don't have focus Pin
J. Dunlap1-May-03 8:46
J. Dunlap1-May-03 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.