Click here to Skip to main content
15,891,925 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDivision By Zero Exception Pin
ForNow31-May-12 2:54
ForNow31-May-12 2:54 
AnswerRe: Division By Zero Exception Pin
Chris Losinger31-May-12 3:25
professionalChris Losinger31-May-12 3:25 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:43
ForNow31-May-12 12:43 
AnswerRe: Division By Zero Exception Pin
Albert Holguin31-May-12 9:35
professionalAlbert Holguin31-May-12 9:35 
GeneralRe: Division By Zero Exception Pin
ForNow31-May-12 12:44
ForNow31-May-12 12:44 
GeneralCWinThread::Run works by turning optimization off #pragma optimize("",on) Pin
ForNow31-May-12 18:24
ForNow31-May-12 18:24 
AnswerRe: Division By Zero Exception Pin
Albert Holguin1-Jun-12 4:31
professionalAlbert Holguin1-Jun-12 4:31 
QuestionExtend std::string functionality Pin
forkbomber31-May-12 2:46
forkbomber31-May-12 2:46 
Hello!

In my current project I'd like to have some additional std::string functions, like trim[r/l], to_lower/to_upper, split and stuff like that.
I know that inheriting from std::string borders on heresy, but I am not sure what else I should do.
I could make a file like strtools.h where all the functions I want are defined but that does not fit the OO scheme of std::string and C++ in general.
Or I could make a class that does not inherit from std::string but privately uses a variable of that type. That would obey OO rules but it's heck of a lot work to do and I guess there will be some overhead (I haven't tested it yet, so hopefuly you can tell me)
What would you recommend me to do and why?

Thanks in advance. Smile | :)

modified 31-May-12 9:29am.

AnswerRe: Extend std::string functionality Pin
Chris Losinger31-May-12 3:27
professionalChris Losinger31-May-12 3:27 
AnswerRe: Extend std::string functionality Pin
Nemanja Trifunovic31-May-12 5:09
Nemanja Trifunovic31-May-12 5:09 
GeneralRe: Extend std::string functionality Pin
Albert Holguin31-May-12 9:56
professionalAlbert Holguin31-May-12 9:56 
AnswerRe: Extend std::string functionality PinPopular
Aescleal31-May-12 6:04
Aescleal31-May-12 6:04 
GeneralRe: Extend std::string functionality Pin
CPallini31-May-12 8:02
mveCPallini31-May-12 8:02 
GeneralRe: Extend std::string functionality Pin
Richard MacCutchan31-May-12 21:32
mveRichard MacCutchan31-May-12 21:32 
GeneralRe: Extend std::string functionality Pin
Aescleal1-Jun-12 0:51
Aescleal1-Jun-12 0:51 
QuestionHow to create your own Remote Desktop Application in Visual C++ or MFC Pin
Member 905298531-May-12 2:41
Member 905298531-May-12 2:41 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Richard MacCutchan31-May-12 3:54
mveRichard MacCutchan31-May-12 3:54 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Richard Andrew x6431-May-12 4:50
professionalRichard Andrew x6431-May-12 4:50 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Albert Holguin31-May-12 9:48
professionalAlbert Holguin31-May-12 9:48 
AnswerRe: How to create your own Remote Desktop Application in Visual C++ or MFC Pin
Rolf Kristensen31-May-12 23:21
Rolf Kristensen31-May-12 23:21 
Questionanimation in opengl Pin
appollosputnik31-May-12 1:37
appollosputnik31-May-12 1:37 
AnswerRe: animation in opengl Pin
enhzflep31-May-12 2:29
enhzflep31-May-12 2:29 
GeneralRe: animation in opengl Pin
appollosputnik31-May-12 3:12
appollosputnik31-May-12 3:12 
GeneralRe: animation in opengl Pin
enhzflep31-May-12 3:16
enhzflep31-May-12 3:16 
GeneralRe: animation in opengl Pin
Richard MacCutchan31-May-12 3:46
mveRichard MacCutchan31-May-12 3:46 

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.