How to make concatenations at const wchar_t* parameter in this case?
I'm trying to make screenshots that are saved automatically with names like:
screen-1.jpg
screen-2.jpg
screen-3.jpg
...
screen-i.jpg`
Code:
p_bmp->Save(L"C:/Users/PCUSER/AppData/screen-" + filenumber + ".jpg", &pngClsid, NULL);
//filenumber is ant int that increases automatically
But it's giving me an error:
expression must have integral or unscoped