如何在VC ++应用程序中读写中文字符串

问题描述:



如何在VC ++中从应用程序读取和写入中文字符串?
Ravi tej.

Hi,

How to read and write Chinese strings from my application in VC++?
Ravi tej.

为vc ++应用程序提供了unicode支持. 在项目->设置-> C/C ++选项卡->预处理器->预处理器定义中添加宏 _UNICODE,UNICODE .
wWinMainCRTStartup 添加到
项目->设置->链接->输出->入口点符号编辑框
give unicode support to your vc++ application.
add macros _UNICODE,UNICODE in projects->Settings->C/C++ tab->preprocessor->Preprocessor defenitions.
add wWinMainCRTStartup in to
Project->Settings->Link->Output->Entry Point Symbol edit box