VS调用 libxl 库异常

xiaoxiao2021-02-28  104

Sheet* sheet = book->addSheet(L"Sheet1");

编译出现

error C2664: “libxl::IBookT<TCHAR>::addSheet”: 不能将参数 1 从“const wchar_t [7]”转换为“const char *” 1>          with 1>          [ 1>              TCHAR=char 1>          ] 1>          与指向的类型无关;转换要求 reinterpret_cast、C 样式转换或函数样式转换

是字符编码的原因:

工 程---》属性--》常规--》字符集,设置成  【使用Unicode字符集】

转载请注明原文地址: https://www.6miu.com/read-64280.html

最新回复(0)