Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUpdate XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 22:04
sharanu8-Jan-08 22:04 
AnswerRe: Update XML file attributes using Win 32 Console Application? Pin
CPallini8-Jan-08 22:10
mveCPallini8-Jan-08 22:10 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:25
sharanu8-Jan-08 23:25 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
CPallini8-Jan-08 23:43
mveCPallini8-Jan-08 23:43 
AnswerRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 22:25
toxcct8-Jan-08 22:25 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:26
sharanu8-Jan-08 23:26 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 23:36
toxcct8-Jan-08 23:36 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
sharanu8-Jan-08 23:36
sharanu8-Jan-08 23:36 
GeneralRe: Update XML file attributes using Win 32 Console Application? Pin
toxcct8-Jan-08 23:40
toxcct8-Jan-08 23:40 
QuestionHow to get CMainFrame's handle in CFormView::OnInitialUpdate Pin
hanlei00000000098-Jan-08 21:57
hanlei00000000098-Jan-08 21:57 
AnswerRe: How to get CMainFrame's handle in CFormView::OnInitialUpdate Pin
Matthew Faithfull8-Jan-08 22:08
Matthew Faithfull8-Jan-08 22:08 
GeneralOnSize() gets called only once Pin
AbbyIndian8-Jan-08 21:14
AbbyIndian8-Jan-08 21:14 
GeneralRe: OnSize() gets called only once Pin
Cedric Moonen8-Jan-08 21:21
Cedric Moonen8-Jan-08 21:21 
GeneralRe: OnSize() gets called only once Pin
zengkun1008-Jan-08 21:32
zengkun1008-Jan-08 21:32 
GeneralRe: OnSize() gets called only once Pin
AbbyIndian8-Jan-08 22:27
AbbyIndian8-Jan-08 22:27 
GeneralRe: OnSize() gets called only once Pin
CPallini8-Jan-08 22:55
mveCPallini8-Jan-08 22:55 
GeneralRe: OnSize() gets called only once Pin
zengkun1008-Jan-08 23:03
zengkun1008-Jan-08 23:03 
GeneralRe: OnSize() gets called only once Pin
David Crow9-Jan-08 3:43
David Crow9-Jan-08 3:43 
GeneralUse ostringstream to make a string Pin
CodingLover8-Jan-08 19:54
CodingLover8-Jan-08 19:54 
Hi all,

I'm working with some date formating, with local and UTC time format. At the end I've print the result to the console as follows.

cout << stLocal.wMonth << "/" << stLocal.wDay << "/" << stLocal.wYear << " " << stLocal.wHour << ":" << stLocal.wMinute << "\n";


This line of code works fine, but seems this is too dull when passing this time. Actually I want to pass that value as a string(as a single value) and try the following.

ostringstream os;
os << stLocal.wMonth << "/" << stLocal.wDay << "/" << stLocal.wYear << " " << stLocal.wHour << ":" << stLocal.wMinute << "\t";
cout << os;//0012FA3C


The thing here the output is just a number, 0012FA3C for all values.

What's wrong with my code.

I appreciate your help all the time...
Eranga Smile | :)

GeneralRe: Use ostringstream to make a string Pin
toxcct8-Jan-08 21:22
toxcct8-Jan-08 21:22 
GeneralRe: Use ostringstream to make a string Pin
CodingLover8-Jan-08 21:53
CodingLover8-Jan-08 21:53 
GeneralRe: Use ostringstream to make a string [modified] Pin
CPallini8-Jan-08 22:06
mveCPallini8-Jan-08 22:06 
GeneralRe: Use ostringstream to make a string Pin
CodingLover8-Jan-08 22:26
CodingLover8-Jan-08 22:26 
QuestionA question about SendMessage and PostMessage Pin
zengkun1008-Jan-08 19:50
zengkun1008-Jan-08 19:50 
GeneralRe: A question about SendMessage and PostMessage Pin
Cedric Moonen8-Jan-08 20:11
Cedric Moonen8-Jan-08 20:11 

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.