Click here to Skip to main content
15,905,233 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: A question about SendMessage and PostMessage Pin
zengkun1008-Jan-08 20:28
zengkun1008-Jan-08 20:28 
GeneralRe: A question about SendMessage and PostMessage Pin
Cedric Moonen8-Jan-08 20:34
Cedric Moonen8-Jan-08 20:34 
GeneralRe: A question about SendMessage and PostMessage Pin
zengkun1008-Jan-08 20:50
zengkun1008-Jan-08 20:50 
GeneralRe: A question about SendMessage and PostMessage Pin
Cedric Moonen8-Jan-08 20:59
Cedric Moonen8-Jan-08 20:59 
GeneralRe: A question about SendMessage and PostMessage Pin
zengkun1008-Jan-08 21:22
zengkun1008-Jan-08 21:22 
GeneralRe: A question about SendMessage and PostMessage Pin
CPallini8-Jan-08 21:41
mveCPallini8-Jan-08 21:41 
GeneralRe: A question about SendMessage and PostMessage Pin
zengkun1009-Jan-08 3:17
zengkun1009-Jan-08 3:17 
GeneralYou're welcome Pin
CPallini9-Jan-08 3:28
mveCPallini9-Jan-08 3:28 
GeneralRe: A question about SendMessage and PostMessage Pin
KarstenK8-Jan-08 21:34
mveKarstenK8-Jan-08 21:34 
Questionvoice communication, compress and recod question & c++ code for capture all thing i enter [modified] Pin
Member 45422728-Jan-08 19:10
Member 45422728-Jan-08 19:10 
GeneralRe: voice communication, compress and recod question & c++ code for capture all thing i enter Pin
Mark Salsbery9-Jan-08 7:25
Mark Salsbery9-Jan-08 7:25 

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.