cspreadsheet,编译不通过
想操作excel表格,环境是VS2005
添加了cspreadsheet头文件之后,编译不通过。
怎么搞的,是不是宽字符的原因阿?
迷惑
部分错误提示如下:
1>24Channel2Dlg.cpp
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(198) : warning C4244: '=' : conversion from 'INT_PTR' to 'short', possible loss of data
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(206) : warning C4244: '=' : conversion from 'INT_PTR' to 'short', possible loss of data
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(257) : error C2664: 'void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char [14]' to 'const wchar_t *'
1> with
1> [
1> BaseType=wchar_t,
1> StringTraits=StrTraitMFC_DLL<wchar_t>
1> ]
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(310) : warning C4244: '=' : conversion from 'INT_PTR' to 'short', possible loss of data
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(342) : warning C4244: '=' : conversion from 'INT_PTR' to 'short', possible loss of data
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(352) : warning C4129: 'L' : unrecognized character escape sequence
1>c:\documents and settings\lenovo\my documents\visual studio 2005\projects\24channel2\24channel2\cspreadsheet.h(352) : error C2001: newline in constant