Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhats wrong with ontimer function? Pin
Aljaz11127-Mar-09 2:31
Aljaz11127-Mar-09 2:31 
QuestionRe: whats wrong with ontimer function? Pin
David Crow27-Mar-09 2:55
David Crow27-Mar-09 2:55 
AnswerRe: whats wrong with ontimer function? Pin
Aljaz11127-Mar-09 5:59
Aljaz11127-Mar-09 5:59 
QuestionLPTSTR problem Pin
zakkas248327-Mar-09 0:41
zakkas248327-Mar-09 0:41 
AnswerRe: LPTSTR problem Pin
Niklas L27-Mar-09 0:44
Niklas L27-Mar-09 0:44 
GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 0:57
zakkas248327-Mar-09 0:57 
GeneralRe: LPTSTR problem Pin
David Crow27-Mar-09 2:57
David Crow27-Mar-09 2:57 
AnswerRe: LPTSTR problem Pin
Stuart Dootson27-Mar-09 0:48
professionalStuart Dootson27-Mar-09 0:48 
Nope - with the code you've shown there is no guarantee that either lptSub or lptMessage have a zero character that will a) tell _tcscat where to start copying lptSub into, and b) tell _tcscat when to stop copying lptSub into lptMessage.

And there's also the fact that you want sizeof(TCHAR) rather than sizeof(LPTSTR), as previously pointed out.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 1:17
zakkas248327-Mar-09 1:17 
GeneralRe: LPTSTR problem Pin
Eytukan27-Mar-09 1:23
Eytukan27-Mar-09 1:23 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 5:27
professionalJoe Woodbury27-Mar-09 5:27 
GeneralRe: LPTSTR problem PinPopular
David Crow27-Mar-09 6:07
David Crow27-Mar-09 6:07 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:17
professionalJoe Woodbury27-Mar-09 6:17 
GeneralRe: LPTSTR problem Pin
Eytukan27-Mar-09 6:10
Eytukan27-Mar-09 6:10 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:19
professionalJoe Woodbury27-Mar-09 6:19 
GeneralRe: LPTSTR problem Pin
Eytukan27-Mar-09 6:26
Eytukan27-Mar-09 6:26 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:30
professionalJoe Woodbury27-Mar-09 6:30 
JokeRe: LPTSTR problem Pin
Eytukan27-Mar-09 6:41
Eytukan27-Mar-09 6:41 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:50
professionalJoe Woodbury27-Mar-09 6:50 
JokeRe: LPTSTR problem Pin
Eytukan27-Mar-09 6:53
Eytukan27-Mar-09 6:53 
General[OT] Re: LPTSTR problem Pin
David Crow27-Mar-09 6:45
David Crow27-Mar-09 6:45 
GeneralRe: [OT] Re: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:49
professionalJoe Woodbury27-Mar-09 6:49 
GeneralRe: [OT] Re: LPTSTR problem Pin
Eytukan27-Mar-09 6:49
Eytukan27-Mar-09 6:49 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 7:09
mveCPallini27-Mar-09 7:09 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 7:12
professionalJoe Woodbury27-Mar-09 7:12 

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.