I want to add an string to a LPTSTR.
The code is:
hSourceFile = CreateFile(
pszSourceFile,
FILE_READ_DATA,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
if (INVALID_HANDLE_VALUE != hSourceFile)
{
_tprintf(
TEXT("The source plaintext file, %s, is open. \n"),
pszSourceFile);
}
The pszSourceFile is a type of LPTSTR, but i want to add some extra text.
Like (not working)
pszSourceFile + ".txt"
What is the best way to do this?