hi,
i started to convert an application toward a multilanguage application by using string tables.
i insert some different languages and it works fine, but i don't know how to deal the char variables inside the code.
1) is it right to change all the char definistions into TCHAR?
2) is it right to change all the function sprintf, strcat, strtok, strcpy, etc into _stprintf, _tcscat, _tcstok, etc ...?
3) what about all the string composed, i have to write the _T("") before any string in the code?
like
_stprintf( pcFilenameTmp, "%s_%d", szNameFile, k );
i must write
_stprintf( pcFilenameTmp, _T("%s_%d"), szNameFile, k );
4) other things i don't know?
thanks
Davide
i started to convert an application toward a multilanguage application by using string tables.
i insert some different languages and it works fine, but i don't know how to deal the char variables inside the code.
1) is it right to change all the char definistions into TCHAR?
2) is it right to change all the function sprintf, strcat, strtok, strcpy, etc into _stprintf, _tcscat, _tcstok, etc ...?
3) what about all the string composed, i have to write the _T("") before any string in the code?
like
_stprintf( pcFilenameTmp, "%s_%d", szNameFile, k );
i must write
_stprintf( pcFilenameTmp, _T("%s_%d"), szNameFile, k );
4) other things i don't know?
thanks
Davide