changed to no CRL, modified conversion from char to tchar