摘要:
MultiByteToWideChar const UINT codePage = 936; // GB 2312. CCHAR *multiByteString = "源字符串abcd"; // First: get count of multi-byte string. const DWORD cCh = MultiByteToWideChar(codePage, // Character Page. 0, ... 阅读全文
posted @ 2012-07-06 15:00
walfud
阅读(1602)
评论(0)
推荐(0)
摘要:
编码方式ASCII: American Standard Code for Information Interchange. 这是一种编码方法, 它属于单字符集编码的一种实现. 所有字符都是 1 byte 空间. 原 127 个字符, 后来被扩展到 255 个字符.UNICODE: Universal Character Set. 这是一种编码方式, 它属于多字符集编码的一种实现.编码类型SBCS: Single-Byte Character Set. 一个字符由一个 byte 构成.DBCS: Double-Byte Character Set. 个人理解, 它是 MBC... 阅读全文
posted @ 2012-07-06 09:10
walfud
阅读(846)
评论(0)
推荐(0)
选择 cin.get 还是 cin.getline?
对速算长久的好奇驱使我看看这本书...
使用标志位 KEY_WOW64_32KEY 和 KEY_WOW64_64KEY 来控制 HKEY_LOCAL_MACHINE\Software 的访问, 如果你的程序可能会运行在 x64 Windows 上. 否则在 Vista x64 上可能会导致找不到 key 的错误.
programming in 64 bit, going ahead the future.
先位扩展, 再变号.
浙公网安备 33010602011771号