Win32 learning notes
Author: Jiang Xuezhe (netsail0@163.net) materials: Windows programming (fifth edition), Peking University Press, [the United States] Charles Petzold with the Beijing Science and Technology Development Co., Ltd. Bo Yan translated ¥: 160 Environment: windows2000 server Internet Explorer 6.0 DirectX7 .0 Visual C 6.0
(Tunjiang computer program preparation group copyright, reproduced please explain the source) ------------------------------------------------------------------------------------------------------------------------------ --------------------------------------- Chapter 2 Unicode
I want to understand the second chapter, first of all, I want to know what is the ASCII code. The content of the second chapter is very important, you must read it seriously, read more.
Paragraph 14
Typedef unsigned short wchar_t;
Windows has a 'new' data type in many C standards. such as:
Wchar_t, tchar, dword, uint
When I first saw this data type, I received a heavy blow. I feel too difficult, many data types I don't know! Why doesn't Tan Haoqiang's book do not have this data type? Really want me! Until I saw the line above: TypedEf unsigned short wchar_t; only knowing these is only a creation of Windows.
It can be seen that Wchar_t is only unsigned short. Others are also a truth, all of the stuff defined by TypeDef. This is what I saw when I saw the second chapter, I like it! The data type of various 'new' is more detailed explanation in the book.
The second chapter is very rich. In the end, the author still reads the previous Printf (), so I have made a non-collapsed messageboxprintf ()
Thirty-fourth page
Scrnsize is a stuff that you can detect your current display resolution. For example, I am 1024 * 768
For this program, you can run once, don't want to understand it, let him see the ghost. We must understand the Hellowin of the third chapter. You may not read a few times, you don't know much about the second chapter, it doesn't matter, a life, two times. It is possible to see more.