1.c++ uppercase True and lowercase true difference
True is of type bool;
True is the int type, VC This is the MS own definition;
The C + + rule does not allow two functions to be distinguished by only the return type
Is there a difference between "false" and "false" in 2.MFC?
There is a difference. False is a value of type bool, one byte in size. While false is a value of type bool, BOOL is a typedef int BOOL, four bytes in size. While the false and false values are all 1, one is four bytes and one is one byte.
3. What do the "DWORD" and "HWND" refer to respectively?
The DWORD type represents a "double word", which is a four-byte integer value, and in Windef.h, the DWORD is defined as follows:
typedef unsigned long DWORD; in other words, the DWORD and unsigned long are the same.
Also in the windef.h file, the definition of HWND is this:
struct hwnd__{int unused;}; typedef hwnd__* HWND;
That is, the HWND is a pointer to the hwnd__ type, and the type hwnd__ is obviously something like a placeholder. In a nutshell, an HWND is a pointer that defines a handle to a window.
Uppercase true and lowercase true differences in C + +