Click here to Skip to main content
15,901,122 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: trim? Pin
Jose Lamas Rios25-Sep-05 16:03
Jose Lamas Rios25-Sep-05 16:03 
Questionstrange char* problem Pin
ddmcr22-Sep-05 11:24
ddmcr22-Sep-05 11:24 
AnswerRe: strange char* problem Pin
Christian Graus22-Sep-05 12:30
protectorChristian Graus22-Sep-05 12:30 
GeneralRe: strange char* problem Pin
Cedric Moonen22-Sep-05 20:10
Cedric Moonen22-Sep-05 20:10 
AnswerRe: strange char* problem Pin
Cedric Moonen22-Sep-05 20:15
Cedric Moonen22-Sep-05 20:15 
GeneralRe: strange char* problem Pin
Steen Krogsgaard22-Sep-05 21:07
Steen Krogsgaard22-Sep-05 21:07 
GeneralRe: strange char* problem Pin
ddmcr22-Sep-05 22:24
ddmcr22-Sep-05 22:24 
GeneralRe: strange char* problem Pin
Steen Krogsgaard22-Sep-05 22:51
Steen Krogsgaard22-Sep-05 22:51 
So, apparently the compiler still makes a copy. Anyway it's not significant, the point is that your pointer version is valid (but bad design in my mind) and the array version is not. The reason for this is as I have described previously.

Just out of curiosity, did you try the const-array version in both debug and release mode? I would guess that in debug you would still see problems, but in release mode it might work. But it's still a bad idea Smile | :)

Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: strange char* problem Pin
ddmcr22-Sep-05 23:00
ddmcr22-Sep-05 23:00 
GeneralRe: strange char* problem Pin
ddmcr22-Sep-05 22:29
ddmcr22-Sep-05 22:29 
AnswerRe: strange char* problem Pin
toxcct22-Sep-05 21:43
toxcct22-Sep-05 21:43 
QuestionRe: strange char* problem Pin
ddmcr22-Sep-05 22:18
ddmcr22-Sep-05 22:18 
AnswerRe: strange char* problem Pin
toxcct22-Sep-05 22:26
toxcct22-Sep-05 22:26 
GeneralRe: strange char* problem Pin
ddmcr22-Sep-05 22:29
ddmcr22-Sep-05 22:29 
QuestionMFC with Windows Form App (.NET) like controls Pin
lordgreg22-Sep-05 10:31
lordgreg22-Sep-05 10:31 
AnswerRe: MFC with Windows Form App (.NET) like controls Pin
Christian Graus22-Sep-05 12:31
protectorChristian Graus22-Sep-05 12:31 
Questionsend message from thread to extended MFC DLL Pin
iz722-Sep-05 9:15
iz722-Sep-05 9:15 
AnswerRe: send message from thread to extended MFC DLL Pin
MailtoGops22-Sep-05 18:33
MailtoGops22-Sep-05 18:33 
Questionconverting char* to TCHAR? Pin
Member 227578522-Sep-05 7:48
Member 227578522-Sep-05 7:48 
AnswerRe: converting char* to TCHAR? Pin
Joe Woodbury22-Sep-05 7:56
professionalJoe Woodbury22-Sep-05 7:56 
Questionfixed length hexidecimal Pin
Ryan Riel22-Sep-05 7:25
Ryan Riel22-Sep-05 7:25 
AnswerRe: fixed length hexidecimal Pin
David Crow22-Sep-05 7:40
David Crow22-Sep-05 7:40 
GeneralRe: fixed length hexidecimal Pin
Ryan Riel22-Sep-05 7:51
Ryan Riel22-Sep-05 7:51 
QuestionMultithreading Oddness Pin
Joel Holdsworth22-Sep-05 6:56
Joel Holdsworth22-Sep-05 6:56 
AnswerRe: Multithreading Oddness Pin
Joel Holdsworth22-Sep-05 7:22
Joel Holdsworth22-Sep-05 7:22 

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.