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

C / C++ / MFC

 
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 
GeneralRe: LPTSTR problem Pin
zakkas248327-Mar-09 1:17
zakkas248327-Mar-09 1:17 
Thanks but ...
I am having strange problem.

PTSTR lptSub = NULL;
lptSub = new TCHAR[25];
if( lptSub == NULL )
return;

LPTSTR lptMessage =NULL;
lptMessage= new TCHAR[256];
if( !lptMessage )
return;

somefun(lptSub);

MessageBox(NULL,lptSub,L"ABC",1);
///Above line display result perfectly

// Do something with the strings
_tcscat( lptMessage, L"TEMP::" );
_tcscat( lptMessage, lptSub );

MessageBox(NULL,lptMessage,L"ABC",1);
///Above line display only TEMP::

now i think by using new it is allocated with zero initially. but still the value of lptSub display in first Messagebox but not display in second messagebox.

Thank You. Smile | :)
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 
GeneralRe: LPTSTR problem Pin
CPallini27-Mar-09 7:25
mveCPallini27-Mar-09 7:25 

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.