如何在VC ++ 2008中读取unicode Excel文件 [英] how to read unicode excel file in VC++ 2008

查看:114
本文介绍了如何在VC ++ 2008中读取unicode Excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!
我几天开始学习,但是我的项目有一个大问题,我无法读取unicode excel文件,当我读取它时,excel文件显示不正确.有人可以帮助我解决这个问题吗?
例如excel文件包括两个字段:name; age
和数据为:hoàngvănkỳ24
nguyễnthịthúy20
所以把显示nguy?n thi thu显示出来吗?
我在我的项目中添加了_UNICODE

Hi all!
i begin to study in few days but i have a big problem in my project, i cannot read unicode excel file, when i read it, it display incorrect with excel file. Anybody can help me solve that problem?
for example excel file include two field : name ;age
and data are: hoàng văn kỳ 24
nguyễn thị thúy 20
so out put display nguy?n thi thu?
i have added _UNICODE in my project

推荐答案

请详细说明该方案.

您是否正在通过任何程序访问XLS文件?
Please ellborate the scenario.

Are you accessing the XLS file through any program ??


是否向项目中添加了Unicode支持?
在您的预处理器中添加UNICODE宏.
在项目设置中将入口点符号指定为wWinMainCRTStartup
did yoy add unicode support to your project?
Add the macro UNICODE in you preprocessor.
specify the entry point symbol in your Project settings as wWinMainCRTStartup


这篇关于如何在VC ++ 2008中读取unicode Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆