Change TCHAR to Unicode, use safe swprintf to remove warning.