string pagexx = "http://website.com/" + chatname;
string pathxx = "test";
HRESULT resxx = URLDownloadToFile (NULL, _T(pagexx.c_str()),_T(pathxx.c_str()), 0, NULL );
The error is "Error: identifier "Lpagexx" is undefined." and same with pathxx
I cant just enter the string like _T("nice")
because I need chatname in it specifically. how can I make this work?