Click here to Skip to main content
15,034,986 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to put blank line in Excel Pin
David Crow19-Sep-07 2:46
MemberDavid Crow19-Sep-07 2:46 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:28
Membertunminhein19-Sep-07 3:28 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 3:31
MemberDavid Crow19-Sep-07 3:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 3:45
Membertunminhein19-Sep-07 3:45 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 4:23
Membertunminhein19-Sep-07 4:23 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:31
MemberDavid Crow19-Sep-07 5:31 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 5:40
Membertunminhein19-Sep-07 5:40 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 5:50
MemberDavid 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
Membertunminhein19-Sep-07 5:56 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 6:03
MemberDavid Crow19-Sep-07 6:03 
GeneralRe: how to put blank line in Excel Pin
tunminhein19-Sep-07 6:20
Membertunminhein19-Sep-07 6:20 
GeneralRe: how to put blank line in Excel Pin
David Crow19-Sep-07 6:55
MemberDavid Crow19-Sep-07 6:55 
GeneralRe: how to put blank line in Excel Pin
tunminhein23-Sep-07 11:54
Membertunminhein23-Sep-07 11:54 
Question_aligned_malloc Problem! Pin
bosfan19-Sep-07 0:18
Memberbosfan19-Sep-07 0:18 
AnswerRe: _aligned_malloc Problem! Pin
toxcct19-Sep-07 0:34
Membertoxcct19-Sep-07 0:34 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 0:49
Memberbosfan19-Sep-07 0:49 
GeneralRe: _aligned_malloc Problem! Pin
Matthew Faithfull19-Sep-07 1:03
MemberMatthew Faithfull19-Sep-07 1:03 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 1:08
Memberbosfan19-Sep-07 1:08 
AnswerRe: _aligned_malloc Problem! Pin
Matthew Faithfull19-Sep-07 1:31
MemberMatthew Faithfull19-Sep-07 1:31 
GeneralRe: _aligned_malloc Problem! Pin
bosfan19-Sep-07 3:06
Memberbosfan19-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
Memberbosfan19-Sep-07 3:09 
QuestionTab Control Related problem Pin
Y_Kaushik18-Sep-07 23:55
MemberY_Kaushik18-Sep-07 23:55 
AnswerRe: Tab Control Related problem Pin
nbugalia19-Sep-07 0:20
Membernbugalia19-Sep-07 0:20 
GeneralRe: Tab Control Related problem Pin
Y_Kaushik19-Sep-07 0:47
MemberY_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.