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

C / C++ / MFC

 
GeneralRe: LPTSTR problem Pin
Stuart Dootson27-Mar-09 1:48
professionalStuart Dootson27-Mar-09 1:48 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 5:51
professionalJoe Woodbury27-Mar-09 5:51 
GeneralRe: LPTSTR problem Pin
Stuart Dootson27-Mar-09 6:09
professionalStuart Dootson27-Mar-09 6:09 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 6:22
professionalJoe Woodbury27-Mar-09 6:22 
AnswerRe: LPTSTR problem Pin
CPallini27-Mar-09 0:49
mveCPallini27-Mar-09 0:49 
AnswerRe: LPTSTR problem Pin
Cedric Moonen27-Mar-09 0:51
Cedric Moonen27-Mar-09 0:51 
GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 1:03
zakkas248327-Mar-09 1:03 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 1:10
mveCPallini27-Mar-09 1:10 
zakkas2483 wrote:
// Do something with the strings
_tcscat( lptMessage, L"TEMP::" );
_tcscat( lptMessage, lptSub )

I suppose you should pass explicitely the lenght of the buffer, since you've allocated dinamically it.
Side note, you should always check the return value of the new operator.
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 1:14
zakkas248327-Mar-09 1:14 
GeneralRe: LPTSTR problem Pin
Eytukan27-Mar-09 1:26
Eytukan27-Mar-09 1:26 
GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 1:53
zakkas248327-Mar-09 1:53 
QuestionRe: LPTSTR problem [modified] Pin
CPallini27-Mar-09 1:44
mveCPallini27-Mar-09 1:44 
AnswerRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 5:30
professionalJoe Woodbury27-Mar-09 5:30 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 7:06
mveCPallini27-Mar-09 7:06 
GeneralRe: LPTSTR problem Pin
Joe Woodbury27-Mar-09 7:10
professionalJoe Woodbury27-Mar-09 7:10 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 7:17
mveCPallini27-Mar-09 7:17 
QuestionHelp with Binary Pin
FISH78627-Mar-09 0:11
FISH78627-Mar-09 0:11 
AnswerRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:20
Michael Schubert27-Mar-09 0:20 
GeneralRe: Help with Binary Pin
FISH78627-Mar-09 0:36
FISH78627-Mar-09 0:36 
GeneralRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:40
Michael Schubert27-Mar-09 0:40 
QuestionRe: Help with Binary Pin
CPallini27-Mar-09 0:43
mveCPallini27-Mar-09 0:43 
AnswerRe: Help with Binary Pin
Roger Stoltz27-Mar-09 0:33
Roger Stoltz27-Mar-09 0:33 
GeneralRe: Help with Binary Pin
FISH78627-Mar-09 1:31
FISH78627-Mar-09 1:31 
AnswerRe: Help with Binary Pin
CPallini27-Mar-09 0:35
mveCPallini27-Mar-09 0:35 
GeneralRe: Help with Binary Pin
Michael Schubert27-Mar-09 0:39
Michael Schubert27-Mar-09 0:39 

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.