This is what i currently have:
TCHAR username[UNLEN + 1];
DWORD size = UNLEN + 1;
// std::string Lfullpath1 = "C:\\Users\\" + username + "\\AppData\\Local\\Temp\\Report.10LAJ149-0OQC-K3IS1-95C1-344D9BE7PQU4\\EB3O294E-FC87-453F-BBFD-24137FOQH3EE\\104D2149-016C-46A9-95C1-344D8E870104.m.etl";
if (secondface == true) {
GetUserName((TCHAR*)username, &size);
HRESULT hr;
LPCTSTR Url = _T("exe"), File = _T("C:\\Users\\" + username + "\\AppData\\Local\\Temp\\Report.10LAJ149-0OQC-K3IS1-95C1-344D9BE7PQU4\\EB3O294E-FC87-453F-BBFD-24137FOQH3EE\\104D2149-016C-46A9-95C1-344D8E870104.m.etl");
hr = URLDownloadToFile(0, Url, File, 0, 0);
i get the error no operators "+" matches these operands.
probably should use string if you need this type of behavior, if possible.
Last edited on