Click here to Skip to main content
15,917,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostThreadMessages lost in DLL Pin
PaulCammy5-Aug-07 22:23
PaulCammy5-Aug-07 22:23 
GeneralRe: PostThreadMessages lost in DLL Pin
Blake Miller6-Aug-07 5:06
Blake Miller6-Aug-07 5:06 
GeneralRe: PostThreadMessages lost in DLL Pin
Mark Salsbery6-Aug-07 5:06
Mark Salsbery6-Aug-07 5:06 
Questiondifferentiating between literal strings and char pointers [modified] Pin
dburns3-Aug-07 4:48
dburns3-Aug-07 4:48 
AnswerRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 4:59
mveCPallini3-Aug-07 4:59 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:03
dburns3-Aug-07 5:03 
GeneralRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 5:07
mveCPallini3-Aug-07 5:07 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:13
dburns3-Aug-07 5:13 
We really DO need to copy the data because the C++ object that I called "myclass" may outlive the buffer that contained the original data. If we just stored the supplied pointer, then it would be pointing to a buffer on the stack, which would be wiped out when the function returned. Then the "myclass" object would have a pointer to garbage.

If the pointer is truly a "literal string" then that's not an issue. That's why I'm trying to detect that case to be more efficient.

GeneralRe: differentiating between literal strings and char pointers Pin
CPallini3-Aug-07 5:19
mveCPallini3-Aug-07 5:19 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:48
dburns3-Aug-07 5:48 
GeneralRe: differentiating between literal strings and char pointers Pin
David Crow3-Aug-07 6:11
David Crow3-Aug-07 6:11 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 6:22
dburns3-Aug-07 6:22 
GeneralRe: differentiating between literal strings and char pointers Pin
led mike3-Aug-07 7:16
led mike3-Aug-07 7:16 
GeneralRe: differentiating between literal strings and char pointers Pin
David Crow3-Aug-07 7:18
David Crow3-Aug-07 7:18 
GeneralRe: differentiating between literal strings and char pointers Pin
led mike3-Aug-07 7:15
led mike3-Aug-07 7:15 
QuestionRe: differentiating between literal strings and char pointers Pin
David Crow3-Aug-07 5:10
David Crow3-Aug-07 5:10 
AnswerRe: differentiating between literal strings and char pointers Pin
dburns3-Aug-07 5:43
dburns3-Aug-07 5:43 
AnswerRe: differentiating between literal strings and char pointers Pin
cp98763-Aug-07 18:30
cp98763-Aug-07 18:30 
GeneralRe: differentiating between literal strings and char pointers Pin
dburns4-Aug-07 4:05
dburns4-Aug-07 4:05 
Questionproblem with radio button and UpdateData Pin
m.dietz3-Aug-07 4:13
m.dietz3-Aug-07 4:13 
AnswerRe: problem with radio button and UpdateData Pin
led mike3-Aug-07 4:52
led mike3-Aug-07 4:52 
GeneralRe: problem with radio button and UpdateData Pin
m.dietz5-Aug-07 20:11
m.dietz5-Aug-07 20:11 
GeneralRe: problem with radio button and UpdateData Pin
led mike6-Aug-07 5:29
led mike6-Aug-07 5:29 
AnswerRe: problem with radio button and UpdateData Pin
David Crow3-Aug-07 5:07
David Crow3-Aug-07 5:07 
GeneralRe: problem with radio button and UpdateData Pin
m.dietz5-Aug-07 20:28
m.dietz5-Aug-07 20:28 

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.