Click here to Skip to main content
15,881,791 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionNeed help in writing c program plzzzzzzzzzzz Pin
samsams10-Feb-06 9:56
samsams10-Feb-06 9:56 
AnswerRe: Need help in writing c program plzzzzzzzzzzz Pin
George L. Jackson10-Feb-06 10:11
George L. Jackson10-Feb-06 10:11 
AnswerRe: Need help in writing c program plzzzzzzzzzzz Pin
perlmunger10-Feb-06 11:27
perlmunger10-Feb-06 11:27 
QuestionI really do hate string streams Pin
PJ Arends10-Feb-06 9:49
professionalPJ Arends10-Feb-06 9:49 
AnswerRe: I really do hate string streams Pin
Jörgen Sigvardsson10-Feb-06 11:25
Jörgen Sigvardsson10-Feb-06 11:25 
AnswerRe: I really do hate string streams Pin
Jörgen Sigvardsson10-Feb-06 11:37
Jörgen Sigvardsson10-Feb-06 11:37 
GeneralRe: I really do hate string streams Pin
PJ Arends10-Feb-06 12:04
professionalPJ Arends10-Feb-06 12:04 
GeneralRe: I really do hate string streams Pin
Jörgen Sigvardsson10-Feb-06 12:15
Jörgen Sigvardsson10-Feb-06 12:15 
PJ Arends wrote:
A rookie mistake that I should have seen. Thanks Jorgen.

It happens to the best every once in a while. Mistakes of this kind often indicates that you need a break. Perhaps it's time for snacks, refreshments and ice hockey? Smile | :)

By the way, I found an error which the VC6 compiler accepts(!)
template<> static const char * tostring<bool> (bool b)
should be
template<> static const char * tostring<bool> (const bool& b)
.

PJ Arends wrote:
Now I just have to figure out a work around so that I can still get my class to do what I want.

How about returning a std::string? I'm not certain about the internals of std::string in any implementation, but I would assume that reference counting and copy on write methods are widely use, which should give little or no penalties for returning such objects.
GeneralRe: I really do hate string streams Pin
PJ Arends10-Feb-06 12:22
professionalPJ Arends10-Feb-06 12:22 
QuestionAPI to enable/disable Windows SP2 Firewall on a given connection? Pin
Carl Mirabel10-Feb-06 9:41
Carl Mirabel10-Feb-06 9:41 
AnswerRe: API to enable/disable Windows SP2 Firewall on a given connection? Pin
Blake Miller13-Feb-06 4:12
Blake Miller13-Feb-06 4:12 
Questioncreating a window... Pin
Peter Charlesworth10-Feb-06 8:51
Peter Charlesworth10-Feb-06 8:51 
Answercreating a window... Pin
Peter Charlesworth10-Feb-06 8:57
Peter Charlesworth10-Feb-06 8:57 
GeneralRe: creating a window... Pin
Peter Charlesworth10-Feb-06 8:59
Peter Charlesworth10-Feb-06 8:59 
GeneralRe: creating a window... Pin
David Crow10-Feb-06 9:15
David Crow10-Feb-06 9:15 
GeneralRe: creating a window... Pin
Peter Charlesworth10-Feb-06 10:05
Peter Charlesworth10-Feb-06 10:05 
AnswerRe: creating a window... Pin
Michael Dunn10-Feb-06 11:09
sitebuilderMichael Dunn10-Feb-06 11:09 
QuestionCListView question Pin
RobJones10-Feb-06 8:22
RobJones10-Feb-06 8:22 
AnswerRe: CListView question Pin
David Crow10-Feb-06 9:19
David Crow10-Feb-06 9:19 
GeneralRe: CListView question Pin
RobJones10-Feb-06 9:27
RobJones10-Feb-06 9:27 
QuestionImmediate Display of Edit Box Pin
jon_fallon10-Feb-06 8:19
jon_fallon10-Feb-06 8:19 
AnswerRe: Immediate Display of Edit Box Pin
David Crow10-Feb-06 9:22
David Crow10-Feb-06 9:22 
AnswerRe: Immediate Display of Edit Box Pin
PJ Arends10-Feb-06 9:59
professionalPJ Arends10-Feb-06 9:59 
GeneralRe: Immediate Display of Edit Box Pin
jon_fallon10-Feb-06 10:04
jon_fallon10-Feb-06 10:04 
QuestionCRecordset ? DoFieldExchange ?? Pin
zinc_z10-Feb-06 8:17
zinc_z10-Feb-06 8:17 

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.