Description: 在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。-reading MSDN found as long as the magic MultiByteToWideChar and LCMapString two functions, it can simply to achieve different internal code conversion. To allow programmers to use more convenient, the authors prepared a CChineseConvertor category, packaging of all Chinese within yards of the conversion function. Readers can direct the inclusion of such MFC, using it is also extremely easy. For further details, please see ChineseConvertor.h and ChineseConvertor.cpp source code. Platform: |
Size: 2146 |
Author:王正 |
Hits:
Description: 在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。-reading MSDN found as long as the magic MultiByteToWideChar and LCMapString two functions, it can simply to achieve different internal code conversion. To allow programmers to use more convenient, the authors prepared a CChineseConvertor category, packaging of all Chinese within yards of the conversion function. Readers can direct the inclusion of such MFC, using it is also extremely easy. For further details, please see ChineseConvertor.h and ChineseConvertor.cpp source code. Platform: |
Size: 2048 |
Author:王正 |
Hits:
Description: 中文分为简体、繁体两种内码,另外还有统一码,如果要在不同码之间转换,需要有一个对应表格,程序编写起来非常繁琐,而且更要有内码对照表格。笔者,在阅读MSDN中发现只要妙用MultiByteToWideChar和LCMapString两函数,就可以简简单单地实现不同内码的转换。为了让程序员使用更方便,笔者编写了一个CChineseConvertor类,包装了所有中文内码的转换功能。读者可以直接在MFC中加入此类,用起来也非常轻松。详细细节请察看ChineseConvertor.h和ChineseConvertor.cpp源代码。
-Divided into Simplified Chinese, Traditional two types of code, in addition to Unicode, if you want to switch between different codes, the need for a corresponding form programming is very tedious, but also have a form of control code. The author, in reading in MSDN and found that as long as MultiByteToWideChar妙用LCMapString two functions can be simple to realize different code conversion. In order to allow programmers to use more convenient, I prepared a CChineseConvertor category, packing all the Chinese code conversion function. Readers can be added directly in the MFC such, is also very easy to use. For further details, please ChineseConvertor.h and ChineseConvertor.cpp View the source code. Platform: |
Size: 2048 |
Author:liuguixue |
Hits:
Description: wchar_t和char互相转换的例子,例子中应用了MultiByteToWideChar和WideCharToMultiByte两个函数-wchar_t and char conversion examples of each other, for example, the application of the two functions MultiByteToWideChar and WideCharToMultiByte Platform: |
Size: 2469888 |
Author:赵军 |
Hits:
Description: 通过L这个宏来实现和通过MultiByteToWideChar函数实现转换。-Through L to achieve the macro and conversion through the MultiByteToWideChar function. Platform: |
Size: 1024 |
Author:darwinlin |
Hits:
Description: 是本人的一个正式项目中所做的测试工程源码。主要功能是通过串口与板子的GSM模块进行通讯,进行收发短信的程序。内容有:串口设置,GB2312与UNICODE编码转换,PDU编解码(此部分大部分借鉴了网友的代码),AT指令发送。因内部使用了MultiByteToWideChar、WideCharToMultiByte字符转换函数,所以不能直接向嵌入式程序中移植。想要做这方面移植的请参考与本人上传的另一个资源“ HZTableComHelp.rar”-Is my project done by a formal evaluation of the source. Main functions of the board through the serial port and the GSM communication modules for the process to send and receive text messages. Are as follows: serial port settings, GB2312 with UNICODE encoding conversion, PDU codecs (most of this part of the code from the User), AT commands to send. Due to the internal use of the MultiByteToWideChar, WideCharToMultiByte character conversion function, it is not embedded directly to the transplant procedure. Want to do in this regard please refer to the transplant and the other resources I uploaded " HZTableComHelp.rar" Platform: |
Size: 98304 |
Author:叶木公 |
Hits:
Description: 通过调用封装API函数WideCharToMultiByte和MultiByteToWideChar,实现ANSI/UTF-8/Unicode编码格式的相互转换。-By calling the API function package WideCharToMultiByte and MultiByteToWideChar, to achieve ANSI/UTF-8/Unicode encoding format conversion. Platform: |
Size: 6144 |
Author:蓝蜻蜓 |
Hits: