C3680带有抛光语言字符串

时间:2016-06-02 09:14:09

标签: c++ visual-studio

安装了新的Visual Studio版本(Visual Studio 2015 Express而不是Visual Studio 2012)。

具有波兰语言字符串的文件现在不再编译,例如:

const char_t* const myString = "Wkr"oac"tce pojed"zac" w prawo.";   //ERROR C3680

我该怎么办?

编辑:哦,是的,这些三元组是像

这样的宏
#define oac "\xc3\xb3"

此致

1 个答案:

答案 0 :(得分:2)

通过在宏名称oac和zac之前和之后添加空格来解决它:

const char_t* const myString = "Wkr" oac "tce pojed" zac " w prawo.";