TCHAR end of line character
Posted
by Xaver
on Stack Overflow
See other posts from Stack Overflow
or by Xaver
Published on 2010-03-23T07:01:50Z
Indexed on
2010/03/23
7:03 UTC
Read the original article
Hit count: 424
visual-c++
|string
int DownloadFtpDirectory(TCHAR* DirPath) {
WIN32_FIND_DATA FileData;
UINT a;
TCHAR* APP_NAME = TEXT("ftpcli");
TCHAR* f;
int j = 5;
do {
j++;
f = _tcsninc(DirPath, j);
}while (_tcsncmp(f, TEXT("/"), 1));
TCHAR* PATH_FTP = wcsncpy(new TCHAR[j], DirPath, j);
After the last line gets a string in which there is no line ending character, how to fix this? P.S. how to do so would be out of line "ftp://ftp.microsoft.com/bussys/", get a string ftp.microsoft.com if both strings are TCHAR ?
© Stack Overflow or respective owner