终于解决了excel操作及cspreadsheet.h问题
来源:互联网 发布:mac查看icloud备份 编辑:程序博客网 时间:2024/06/01 21:23
困扰多日的excel操作问题终于解决:利用cspreadsheet.h!在vs2005下,不能直接应用cspreadsheet.h,所以必须解决些问题先。
首先,
出现暴多错误。解决UNICODE问题,全部添加L。 [1]
+++++++++++++++++++
其次,
出现问题:
error C2664: 'SQLGetInstalledDriversW ' : cannot convert parameter 1 from 'char [2001] ' to 'LPWSTR '
SQLGetInstalledDrivers(szBuf,cbBufMax,& cbBufOut)
SQLGetInstalledDriversW的参数1需要宽字符,
修正它!
把
char szBuf[2001];
char *pszBuf = szBuf;
改为
wchar_t szBuf[2001];
wchar_t *pszBuf = szBuf; [2]
+++++++++++++++++++++++
再次,
出现问题:
error C2665: 'strstr' : none of the 2 overloads could convert all the argument types
把strstr改写成_tcsstr 。 [3]
+++++++++++++++++++++++
同时会出现问题:
error C2665: 'strchr' : none of the 2 overloads could convert all the argument types
把strchr改写成wcschr。 [4]
------------------------------------
参考资料:
[1]cspreadsheet,编译不通过
http://topic.csdn.net/u/20080506/15/c7c1a0b6-7fb8-4e14-b1f0-102a853b7d6e.html?338699236
[2]char转换成LPWSTR的小问题??
http://topic.csdn.net/u/20070422/17/80f22eb8-c0f2-4313-b191-e86b60ef2f5b.html
[3]今天很高兴,又解决了一个问题,感谢牛牛们
http://blog.csdn.net/ehfaafzv/archive/2006/09/20/1253120.aspx
[4]Unicode and find exceldriver
http://www.codeguru.com/forum/showthread.php?threadid=433263
- 终于解决了excel操作及cspreadsheet.h问题
- 终于解决了excel操作及cspreadsheet.h问题
- CSpreadSheet类学习(操作EXCEL)
- CSpreadSheet类学习(操作EXCEL)
- CSpreadSheet类学习(操作EXCEL)
- 问题终于解决了
- CSpreadSheet类学习,用于操作excel表格。
- Excel操作类-CSpreadSheet and BasicExcel
- Excel操作类-CSpreadSheet and BasicExcel
- CSpreadSheet类学习,用于操作excel表格。
- Linking 问题终于解决了.
- 终于解决了TNS问题!
- CLOSE_WAIT问题终于解决了
- 终于解决了一点问题
- 【总结】终于解决了asp.net下excel导出excel.exe进程无法释放的问题!!
- excel导出的功能发布到服务器上报错问题,终于解决了!!
- 终于解决昨天的问题了
- 终于解决了这个怪问题
- Samba and IPTables
- 一些与.net方面结合使用的JavaScript使用技巧,
- 姚博文 java
- Jxplorer连接Apache DS的问题
- [转]cgic: 为C语言设计CGI地C函数库
- 终于解决了excel操作及cspreadsheet.h问题
- 提高网页打开速度的一些小技巧
- System.IO.Packages 初探
- 函数返回局部地址的问题
- 18个优秀的在线图片编辑服务网站
- 转实现自己的批处理文件梦想!
- 打包
- 签证者的武林秘笈(六)—-来自太傻的签证哲学
- 数据验证(模拟检测用户名是否存在) http://www.cnblogs.com/beniao/archive/2008/03/29/1129141.html