Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is the function of the statement "(*(long*)0) = 0;" ? Pin
Anonymous22-Jan-03 2:49
Anonymous22-Jan-03 2:49 
GeneralRe: What is the function of the statement "(*(long*)0) = 0;" ? Pin
George222-Jan-03 2:58
George222-Jan-03 2:58 
AnswerRe: What is the function of the statement "(*(long*)0) = 0;" ? Pin
Daniel Turini22-Jan-03 2:50
Daniel Turini22-Jan-03 2:50 
GeneralRe: What is the function of the statement "(*(long*)0) = 0;" ? Pin
George222-Jan-03 2:57
George222-Jan-03 2:57 
GeneralInitialization of toolbars, dialogs at the launch of an application Pin
loic22-Jan-03 2:34
loic22-Jan-03 2:34 
GeneralRe: Initialization of toolbars, dialogs at the launch of an application Pin
Rage22-Jan-03 2:42
professionalRage22-Jan-03 2:42 
General(thank you) Re: Initialization of toolbars, dialogs at the launch of an application Pin
loic22-Jan-03 3:23
loic22-Jan-03 3:23 
GeneralRead backwards - CSV file Pin
Dave_22-Jan-03 2:32
Dave_22-Jan-03 2:32 
I need to improve the way I am reading from a .csv file. The files could get very large > 2MB. When new information needs to be stored, it needs to be placed at the end of the file. The problem is that I need to check if I am placing duplicated information in.

The information that cannot be duplicated is always in the second to last, and last positions of each line. For example:

154,56.0,12,57,409956,10976634
55,408.5,505,246,409957,10976637
708,8894.6,13,8074,8945,409958,10976639

The last two numbers on each line are the numbers I need to get. The line lengths are not going to be the same, so I can't read backward the same amount to get to the next previous line.

There are some tricks I can do to prevent me from reading back through the entire file, but I don't want to flood you with details.

Is there a better way to read backward - line by line? I am currently reading one byte at a time until I see the \n character. Once I'm there, I keep reading until I see 2 comma characters.

I did some testing, and some lines are taking up to 250ms each! This will never work for what I need this for.

Thank you for any help you may be able to provide.Confused | :confused:
GeneralRe: Read backwards - CSV file Pin
Daniel Turini22-Jan-03 2:40
Daniel Turini22-Jan-03 2:40 
GeneralRe: Read backwards - CSV file Pin
David Chamberlain22-Jan-03 6:30
David Chamberlain22-Jan-03 6:30 
QuestionFilesize? Pin
Dov Sherman22-Jan-03 2:09
Dov Sherman22-Jan-03 2:09 
AnswerRe: Filesize? Pin
chepuri_uk22-Jan-03 2:15
chepuri_uk22-Jan-03 2:15 
AnswerRe: Filesize? Pin
Jörgen Sigvardsson22-Jan-03 2:19
Jörgen Sigvardsson22-Jan-03 2:19 
AnswerRe: Filesize? Pin
Abin22-Jan-03 2:32
Abin22-Jan-03 2:32 
GeneralRe: Filesize? Pin
Dov Sherman22-Jan-03 2:38
Dov Sherman22-Jan-03 2:38 
GeneralI´m looking for Icons and Bitmaps for the Toolbar Pin
strizi22-Jan-03 2:06
strizi22-Jan-03 2:06 
GeneralRe: I´m looking for Icons and Bitmaps for the Toolbar Pin
Nitron22-Jan-03 6:07
Nitron22-Jan-03 6:07 
Generallook the Internet for "Glyphs" Pin
strizi22-Jan-03 18:47
strizi22-Jan-03 18:47 
QuestionIs there a workaround for this? Pin
Jörgen Sigvardsson22-Jan-03 1:46
Jörgen Sigvardsson22-Jan-03 1:46 
AnswerRe: Is there a workaround for this? Pin
Joaquín M López Muñoz22-Jan-03 6:39
Joaquín M López Muñoz22-Jan-03 6:39 
GeneralRe: Is there a workaround for this? Pin
Jörgen Sigvardsson22-Jan-03 10:18
Jörgen Sigvardsson22-Jan-03 10:18 
General0xC0000005:Acces violation Pin
Geert Craessaerts22-Jan-03 0:06
Geert Craessaerts22-Jan-03 0:06 
GeneralRe: 0xC0000005:Acces violation Pin
xxhimanshu22-Jan-03 0:22
xxhimanshu22-Jan-03 0:22 
GeneralRe: 0xC0000005:Acces violation Pin
RChin22-Jan-03 0:24
RChin22-Jan-03 0:24 
GeneralRe: 0xC0000005:Acces violation Pin
Ted Ferenc22-Jan-03 1:29
Ted Ferenc22-Jan-03 1:29 

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.