Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DateAdd equivalent? Pin
nm_1147-Feb-07 13:37
nm_1147-Feb-07 13:37 
GeneralRe: DateAdd equivalent? Pin
David Crow7-Feb-07 16:44
David Crow7-Feb-07 16:44 
GeneralRe: DateAdd equivalent? Pin
nm_1148-Feb-07 12:06
nm_1148-Feb-07 12:06 
GeneralRe: DateAdd equivalent? Pin
David Crow8-Feb-07 16:55
David Crow8-Feb-07 16:55 
GeneralRe: DateAdd equivalent? Pin
nm_1148-Feb-07 19:02
nm_1148-Feb-07 19:02 
GeneralRe: DateAdd equivalent? Pin
David Crow9-Feb-07 2:45
David Crow9-Feb-07 2:45 
AnswerRe: DateAdd equivalent? Pin
kasturi_haribabu4-Feb-07 20:51
kasturi_haribabu4-Feb-07 20:51 
Questioncout and Persistent Formatting Pin
Jeffrey Walton4-Feb-07 12:10
Jeffrey Walton4-Feb-07 12:10 
Hi All,

I'm prototyping code, and can't seem to persist a hexadecimal base. The following does not perform as expected (it still outputs base 10):

std::cout.unsetf ( std::ios_base::dec );<br />
std::cout.setf ( std::ios_base::hex );<br />
std::cout.setf ( std::ios_base::uppercase );


The alternative (which I am now trying to avoid) is:

std::cout << std::hex << 0x1000 << std::endl;

Any ideas? I'm not sure if I am not using the stream correctly, missing a Microsoft feature, or making an incorrect assumption for flag manipulation.

Thanks,
Jeff
QuestionRe: cout and Persistent Formatting [modified] Pin
Mark Salsbery4-Feb-07 12:49
Mark Salsbery4-Feb-07 12:49 
AnswerRe: cout and Persistent Formatting Pin
Jeffrey Walton4-Feb-07 13:49
Jeffrey Walton4-Feb-07 13:49 
QuestionUrgent help:Minimize dialog,control disappears Pin
Lewis Liu L4-Feb-07 10:16
Lewis Liu L4-Feb-07 10:16 
QuestionRe: Urgent help:Minimize dialog,control disappears Pin
Hamid_RT5-Feb-07 7:02
Hamid_RT5-Feb-07 7:02 
AnswerRe: Urgent help:Minimize dialog,control disappears Pin
ThatsAlok6-Feb-07 20:16
ThatsAlok6-Feb-07 20:16 
Questionsending input to window Pin
dene999704-Feb-07 7:35
dene999704-Feb-07 7:35 
AnswerRe: sending input to window Pin
Waldermort4-Feb-07 8:01
Waldermort4-Feb-07 8:01 
GeneralRe: sending input to window Pin
dene999704-Feb-07 8:51
dene999704-Feb-07 8:51 
AnswerRe: sending input to window Pin
Mark Salsbery4-Feb-07 9:32
Mark Salsbery4-Feb-07 9:32 
AnswerRe: sending input to window Pin
ThatsAlok4-Feb-07 21:27
ThatsAlok4-Feb-07 21:27 
AnswerRe: sending input to window Pin
Hamid_RT5-Feb-07 7:06
Hamid_RT5-Feb-07 7:06 
GeneralRe: sending input to window Pin
ThatsAlok6-Feb-07 20:17
ThatsAlok6-Feb-07 20:17 
QuestionWhy don't splitters appear? Pin
neilsolent4-Feb-07 7:05
neilsolent4-Feb-07 7:05 
AnswerRe: Why don't splitters appear? Pin
Mark Salsbery4-Feb-07 8:34
Mark Salsbery4-Feb-07 8:34 
QuestionProgram crashes! Pin
dellthinker4-Feb-07 6:29
dellthinker4-Feb-07 6:29 
AnswerRe: Program crashes! Pin
Waldermort4-Feb-07 6:41
Waldermort4-Feb-07 6:41 
AnswerRe: Program crashes! Pin
Hamid_RT4-Feb-07 7:53
Hamid_RT4-Feb-07 7:53 

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.