Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to set text in different fonts in defferent lines of static text control Pin
Banks K19-Jun-07 0:00
Banks K19-Jun-07 0:00 
GeneralRe: how to set text in different fonts in defferent lines of static text control Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:16
Iain Clarke, Warrior Programmer19-Jun-07 0:16 
GeneralRe: how to set text in different fonts in defferent lines of static text control Pin
Hamid_RT19-Jun-07 0:45
Hamid_RT19-Jun-07 0:45 
Questionread data from text file, extract and display in excel format Pin
mrr218-Jun-07 22:47
mrr218-Jun-07 22:47 
AnswerRe: read data from text file, extract and display in excel format [modified] Pin
Rage18-Jun-07 23:37
professionalRage18-Jun-07 23:37 
GeneralRe: read data from text file, extract and display in excel format Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:20
Iain Clarke, Warrior Programmer19-Jun-07 0:20 
GeneralRe: read data from text file, extract and display in excel format Pin
Rage19-Jun-07 0:23
professionalRage19-Jun-07 0:23 
AnswerRe: read data from text file, extract and display in excel format Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:28
Iain Clarke, Warrior Programmer19-Jun-07 0:28 
Read the text from the file into a CString (or char array, or std::string) -- if you can't work that out, then resign your job, or go ask your tutor...

Verify it's the right length!

If its in a CString, then you can extract bits of it using...
CString::Mid ().
So you could do...

int dt_end_pic = atol (stringWhole.Mid (1+6+8, 8));
etc.
You can do similar with std::string, and you can do it the hard with with char arrays too.

I've had to save data for excel to process before. I know there are APIs out there which tell you how to connect to Excels DOM model, etc.
I've cheated, and written out the data in CSV format, and let excel do the heavy lifting itself.

sprintf (buf, "%i,%i,%i,%i\n", ty_record, id_participant, dt_start, dt_end);

then output the string to a new file.


I hope that helped with the hard bits!

Iain.



AnswerRe: read data from text file, extract and display in excel format Pin
David Crow19-Jun-07 4:00
David Crow19-Jun-07 4:00 
QuestionWizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 22:39
Abhijeet Pathak18-Jun-07 22:39 
AnswerRe: Wizard Style Dialogs Pin
_AnsHUMAN_ 18-Jun-07 22:43
_AnsHUMAN_ 18-Jun-07 22:43 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 22:49
Abhijeet Pathak18-Jun-07 22:49 
GeneralRe: Wizard Style Dialogs Pin
_AnsHUMAN_ 18-Jun-07 22:55
_AnsHUMAN_ 18-Jun-07 22:55 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak18-Jun-07 23:06
Abhijeet Pathak18-Jun-07 23:06 
AnswerRe: Wizard Style Dialogs Pin
Iain Clarke, Warrior Programmer19-Jun-07 0:37
Iain Clarke, Warrior Programmer19-Jun-07 0:37 
GeneralRe: Wizard Style Dialogs Pin
Abhijeet Pathak19-Jun-07 1:27
Abhijeet Pathak19-Jun-07 1:27 
GeneralRe: Wizard Style Dialogs Pin
Roger Stoltz19-Jun-07 2:56
Roger Stoltz19-Jun-07 2:56 
QuestionRemove item from a vector? Pin
bosfan18-Jun-07 21:27
bosfan18-Jun-07 21:27 
AnswerRe: Remove item from a vector? Pin
RChin18-Jun-07 21:36
RChin18-Jun-07 21:36 
AnswerRe: Remove item from a vector? Pin
Cedric Moonen18-Jun-07 22:44
Cedric Moonen18-Jun-07 22:44 
QuestionA quiz here C or C++ Pin
C_Zealot18-Jun-07 20:56
C_Zealot18-Jun-07 20:56 
AnswerRe: A quiz here C or C++ Pin
BadKarma18-Jun-07 21:34
BadKarma18-Jun-07 21:34 
AnswerRe: A quiz here C or C++ Pin
RChin18-Jun-07 21:38
RChin18-Jun-07 21:38 
AnswerRe: A quiz here C or C++ Pin
Matthew Faithfull18-Jun-07 22:02
Matthew Faithfull18-Jun-07 22:02 
GeneralRe: A quiz here C or C++ [modified] Pin
BadKarma18-Jun-07 22:05
BadKarma18-Jun-07 22:05 

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.