Click here to Skip to main content
15,902,198 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MS TR1 Regex Pin
Peter_in_278027-Sep-11 16:20
professionalPeter_in_278027-Sep-11 16:20 
QuestionDumb Question - Build Large CString Pin
jkirkerx27-Sep-11 9:23
professionaljkirkerx27-Sep-11 9:23 
AnswerRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 9:53
TheGreatAndPowerfulOz27-Sep-11 9:53 
AnswerRe: Dumb Question - Build Large CString Pin
Albert Holguin27-Sep-11 9:54
professionalAlbert Holguin27-Sep-11 9:54 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:07
Chuck O'Toole27-Sep-11 10:07 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:10
TheGreatAndPowerfulOz27-Sep-11 10:10 
GeneralRe: Dumb Question - Build Large CString Pin
Albert Holguin27-Sep-11 10:14
professionalAlbert Holguin27-Sep-11 10:14 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:23
TheGreatAndPowerfulOz27-Sep-11 10:23 
true, it saves over using the + operator, but since the ctor is going to be called anyway, you're calling an extra method (Format) unnecessarily.

As, I'm sure you know, the compiler does the concatenation of adjacent strings ("abc" "def") is the same as ("abcdef"). So simply removing the + operator and explicitly calling the ctor is better.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader." - John Quincy Adams
You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering” - Wernher von Braun

AnswerRe: Dumb Question - Build Large CString Pin
Code-o-mat27-Sep-11 9:55
Code-o-mat27-Sep-11 9:55 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:04
Chuck O'Toole27-Sep-11 10:04 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz27-Sep-11 10:08
TheGreatAndPowerfulOz27-Sep-11 10:08 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 10:19
Chuck O'Toole27-Sep-11 10:19 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 1:36
Stefan_Lang28-Sep-11 1:36 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz28-Sep-11 3:47
TheGreatAndPowerfulOz28-Sep-11 3:47 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 3:51
Stefan_Lang28-Sep-11 3:51 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz28-Sep-11 6:59
TheGreatAndPowerfulOz28-Sep-11 6:59 
GeneralRe: Dumb Question - Build Large CString Pin
Stefan_Lang28-Sep-11 22:50
Stefan_Lang28-Sep-11 22:50 
GeneralRe: Dumb Question - Build Large CString Pin
Snorri Kristjansson4-Oct-11 3:25
professionalSnorri Kristjansson4-Oct-11 3:25 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole28-Sep-11 5:18
Chuck O'Toole28-Sep-11 5:18 
GeneralRe: Dumb Question - Build Large CString Pin
TheGreatAndPowerfulOz28-Sep-11 7:08
TheGreatAndPowerfulOz28-Sep-11 7:08 
GeneralRe: Dumb Question - Build Large CString Pin
Chuck O'Toole28-Sep-11 13:31
Chuck O'Toole28-Sep-11 13:31 
GeneralRe: Dumb Question - Build Large CString Pin
jkirkerx28-Sep-11 6:19
professionaljkirkerx28-Sep-11 6:19 
GeneralRe: Dumb Question - Build Large CString Pin
jkirkerx27-Sep-11 10:43
professionaljkirkerx27-Sep-11 10:43 
GeneralRe: Dumb Question - Build Large CString Pin
Code-o-mat27-Sep-11 21:57
Code-o-mat27-Sep-11 21:57 
AnswerRe: Dumb Question - Build Large CString Pin
Chuck O'Toole27-Sep-11 9:55
Chuck O'Toole27-Sep-11 9:55 

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.