摘要:
字体就是字的样子,是几何形状信息。 字符集是一个映射表。一个字符是用二进制数字表示的,但具体是什么字符,是根据字符集决定的。打个比方,字符集就像过去的电报编码表,每个字都有个编号。发送电报的时候是发送的一堆数字编号,而对方接受电报的需要根据电报编码表再将编号翻译成字。然后写在电报纸上,具体是用宋体写,还是草书,就由报务员决定了。 阅读全文
摘要:
什么是WinDBG?WinDbg是微软开发的免费源码级调试工具。Windbg可以用于Kernel模式调试和用户模式调试,还可以调试Dump文件。由于大部分程序员不需要做Kernel模式调试, 我在这篇文章中不会介绍Kernel模式调试。Kernel模式调试对学习Windows核心极有帮助。如果你对此感兴趣,可以阅读Inside Windows 2000和Windbg所带的帮助文件。这篇文章得主要目的是介绍WINDBG的主要功能以及相关的命令。关于这些命令的详细语法,请参阅帮助文件。对文章中提到的许多命令,WINDBG有相应的菜单选项。如何得到帮助在命令(Command)窗口中输入.hh 命会调 阅读全文
摘要:
Description: The code you submitted on P4 seems in disorder even if you arrange it well on your own PC.For instance:1. Snapshot of the code on your screen2. But after you submitted itThe reason is tha... 阅读全文
摘要:
一个字符串不指定它使用什么编码是没有意义的。 再也不要假定,“纯”文本(plain text)是ASCII. 没有“纯文本”这个东西。 如果你有一个字符串,在内存中,在文件中,或者在 Email 消息里,你必须知道它的编码是什么。否则你无法正确的解释或者显示给用户。 所有的诸如 “我的网页不能正常显示了”,或者 ”Email 消息不能正常显示了“ 之类的愚蠢问题, 都是因为, 没有告诉... 阅读全文
摘要:
Codepage的定义和历史 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte character sets (SBCS),可以支持256个字符编码. 双字节内码 -- Double-Byte character sets)(DBCS),可以支持65000个字符编码.... 阅读全文
摘要:
PRISM as soon as you remember the following five elements when you typing your each line codes, you will not make stupid mistakes: ------Performance ------Reliability [Resource or Memory Leak [where i... 阅读全文
摘要:
Introduction Since C-style strings can be error-prone and difficult to manage, not to mention a target for hackers looking for buffer overrun bugs, there are lots of string wrapper classes. Unfortunat... 阅读全文
摘要:
Introduction You've undoubtedly seen all these various string types like TCHAR, std::string, BSTR, and so on. And then there are those wacky macros starting with _tcs. And you're staring at the screen... 阅读全文
摘要:
For a dll, if there is nothing to export, means there is no dllMain, and no def file(maybe more cases), then no lib file will be generated. Easy to understand: lib file is used for other ... 阅读全文
摘要:
char* lpStr = "shell-ai-天天向上.prt"CString strVal = lpStr;As a result, strVal won't have correct string.Solution:CString strVal = UTX_NTOM(lpStr).c_str(); 阅读全文