swprintf_s(buf1, 256, "Error: %ls\n", buf2);
I get "Error: no instance of overloaded function "swprintf_s" matches the argument list" despite matching the third pattern at https://msdn.microsoft.com/en-us/library/ce3zzk1k.aspx (wchar_t buf1[256], wchar_t buf2[256])
Any idea what is going wrong?