Click here to Skip to main content
16,008,750 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to put blank line in Excel Pin
David Crow19-Sep-07 2:46
David Crow19-Sep-07 2:46 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:28
tunminhein19-Sep-07 3:28 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 3:31
David Crow19-Sep-07 3:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:45
tunminhein19-Sep-07 3:45 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 4:23
tunminhein19-Sep-07 4:23 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:31
David Crow19-Sep-07 5:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 5:40
tunminhein19-Sep-07 5:40 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:50
David Crow19-Sep-07 5:50 
tunminhein wrote:
str.Format(_T("\n"));
str.Format(_T("%s, %s, %s, %s, %3.0lf%%, %s \n"), lesson, s, sentence, attempt, score, strTime);


What exactly are you expecting this to do? The second call to Format() just overrides what the first one did.

In any case, you need to compare:

if (last_time != strTime)
    m_file.WriteString(_T("\n"));
 
str.Format(_T("%s, %s, %s, %s, %3.0lf%%, %s \n"), lesson, s, sentence, attempt, score, strTime);
m_file.WriteString (str);



"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 5:56
tunminhein19-Sep-07 5:56 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 6:03
David Crow19-Sep-07 6:03 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 6:20
tunminhein19-Sep-07 6:20 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 6:55
David Crow19-Sep-07 6:55 
GeneralRe: how to put blank line in Excel Pin
tunminhein23-Sep-07 11:54
tunminhein23-Sep-07 11:54 
Question_aligned_malloc Problem! Pin
bosfan19-Sep-07 0:18
bosfan19-Sep-07 0:18 
AnswerRe: _aligned_malloc Problem! Pin
toxcct19-Sep-07 0:34
toxcct19-Sep-07 0:34 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 0:49
bosfan19-Sep-07 0:49 
GeneralRe: _aligned_malloc Problem! Pin
Matthew Faithfull19-Sep-07 1:03
Matthew Faithfull19-Sep-07 1:03 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 1:08
bosfan19-Sep-07 1:08 
AnswerRe: _aligned_malloc Problem! Pin
Matthew Faithfull19-Sep-07 1:31
Matthew Faithfull19-Sep-07 1:31 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 3:06
bosfan19-Sep-07 3:06 
AnswerRe: _aligned_malloc Problem! Pin
Randor 19-Sep-07 1:39
professional Randor 19-Sep-07 1:39 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 3:09
bosfan19-Sep-07 3:09 
QuestionTab Control Related problem Pin
Y_Kaushik18-Sep-07 23:55
Y_Kaushik18-Sep-07 23:55 
AnswerRe: Tab Control Related problem Pin
nbugalia19-Sep-07 0:20
nbugalia19-Sep-07 0:20 
GeneralRe: Tab Control Related problem Pin
Y_Kaushik19-Sep-07 0:47
Y_Kaushik19-Sep-07 0:47 

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.