F
free2cric
Hi ,
is this correct to have final LPTSTR to char *
CString fname(argv [1]);
LPTSTR p1 = fname.GetBuffer(fname.GetLength());
char teststr[1000];
sprintf(teststr,"%s",p1); //or
strcpy(teststr,p1);
is this code to have my null terminated teststr.
Thanks
free2cric
is this correct to have final LPTSTR to char *
CString fname(argv [1]);
LPTSTR p1 = fname.GetBuffer(fname.GetLength());
char teststr[1000];
sprintf(teststr,"%s",p1); //or
strcpy(teststr,p1);
is this code to have my null terminated teststr.
Thanks
free2cric