持之以恒
分类: WINDOWS
2009-07-09 11:29:47
Maps a UTF-16 (wide character) string to a new character string. The new character string is not necessarily from a multibyte character set.
也就是将相应的宽字符集(UNICODE)转化为ACSII字符
Value | Meaning |
---|---|
|
The system default Windows ANSI code page. Note This value can be different on different computers, even on the same network. It can be changed on the same computer, leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should use UTF-16 or UTF-8 if possible. |
|
The current system Macintosh code page. Note This value can be different on different computers, even on the same network. It can be changed on the same computer, leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should use UTF-16 or UTF-8 if possible. Note This value is used primarily in legacy code and should not generally be needed since modern Macintosh computers use Unicode for encoding. |
|
The current system OEM code page. Note This value can be different on different computers, even on the same network. It can be changed on the same computer, leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should use UTF-16 or UTF-8 if possible. |
|
Windows 2000: Symbol code page (42). |
|
Windows 2000: The Windows ANSI code page for the current thread. Note This value can be different on different computers, even on the same network. It can be changed on the same computer, leading to stored data becoming irrecoverably corrupted. This value is only intended for temporary use and permanent storage should use UTF-16 or UTF-8 if possible. |
|
Windows Me/98, Windows NT 4.0: UTF-7. Use this value only when forced by a 7-bit transport mechanism. Use of UTF-8 is preferred. With this value set, lpDefaultChar and lpUsedDefaultChar must be set to NULL. |
|
Windows Me/98, Windows NT 4.0: UTF-8. With this value set, lpDefaultChar and lpUsedDefaultChar must be set to NULL. |
Pointer to the Unicode string to convert.(带转化的相应的宽字符)
Size, in characters, of the string indicated by lpWideCharStr. If this parameter is set to -1, the function assumes the string to be null-terminated and calculates the length automatically, including the terminating null character. If cchWideChar is set to 0, the function fails.
Optional. Pointer to a buffer that receives the converted string.
Size, in bytes, of the buffer indicated by lpMultiByteStr. If this parameter is set to 0, the function returns the required buffer size for lpMultiByteStr and makes no use of the output parameter itself.
int MultiByteToWideChar
(
__in UINT CodePage;
__in DWORD dwFlags;
__in LPCSTR lpMutiByteStr;
__in int cchMutiByte;
__out LPWSTR lpWideCharStr;
__in int cchWideChar;
}
这个参数比较少,6个,具体的就不解释了!
另外一个重要的网址是:
http://www.cppblog.com/sunraiing9/archive/2007/03/21/20281.html