Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 2:10
krmed27-Nov-07 2:10 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 2:17
Cedric Moonen27-Nov-07 2:17 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 6:58
krmed27-Nov-07 6:58 
GeneralI understand the point, but Pin
CPallini27-Nov-07 3:02
mveCPallini27-Nov-07 3:02 
GeneralRe: I understand the point, but Pin
krmed27-Nov-07 5:47
krmed27-Nov-07 5:47 
GeneralRe: I understand the point, but Pin
CPallini27-Nov-07 6:04
mveCPallini27-Nov-07 6:04 
GeneralRe: I understand the point, but Pin
krmed27-Nov-07 6:56
krmed27-Nov-07 6:56 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
David Crow27-Nov-07 3:28
David Crow27-Nov-07 3:28 
neha.agarwal27 wrote:
char *len_str = new char;
sprintf(len_str,"%d",len);


Since you are using MFC:

CString len_str;
len_str.Format("%d", len);



"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Mark Salsbery27-Nov-07 7:01
Mark Salsbery27-Nov-07 7:01 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Hamid_RT29-Nov-07 4:07
Hamid_RT29-Nov-07 4:07 
Questionwrite to a text file Pin
tasumisra27-Nov-07 1:06
tasumisra27-Nov-07 1:06 
AnswerRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:09
Cedric Moonen27-Nov-07 1:09 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:17
tasumisra27-Nov-07 1:17 
AnswerRe: write to a text file Pin
Hamid_RT27-Nov-07 1:10
Hamid_RT27-Nov-07 1:10 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:20
tasumisra27-Nov-07 1:20 
GeneralRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:27
Cedric Moonen27-Nov-07 1:27 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:34
tasumisra27-Nov-07 1:34 
GeneralRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:43
Cedric Moonen27-Nov-07 1:43 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:49
tasumisra27-Nov-07 1:49 
GeneralRe: write to a text file Pin
Kenan Aksoy27-Nov-07 2:02
Kenan Aksoy27-Nov-07 2:02 
GeneralRe: write to a text file Pin
David Crow27-Nov-07 3:31
David Crow27-Nov-07 3:31 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 21:22
tasumisra27-Nov-07 21:22 
GeneralRe: write to a text file Pin
David Crow28-Nov-07 2:28
David Crow28-Nov-07 2:28 
AnswerRe: write to a text file Pin
Maximilien27-Nov-07 2:46
Maximilien27-Nov-07 2:46 
Questionbuffer over run in server and client Pin
guru moorthy.k27-Nov-07 0:39
guru moorthy.k27-Nov-07 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.