|Published on:||2003-06-21 07:19:46|
|Hungarian notation was first devised at Microsoft by a guy called Charles Simonyi initially to enable the many programmers working on the same project to understand what was going on someone else's source code.|
|Before Hungarian notation every programmer used a different scheme for naming their variables, making stuff hard to follow, Hungarian notation came along and provided a unilateral way to name identifiers and was adapted by MS, 15 years on its still the most popular naming convention for windows programming (win32 as well as MFC) so its an idea to know it. Although, inevitably a few different versions have cropped over the years you can usually make out what's going on.
by: Unsigned char or byte.
cx / cy: short used to denote size.
dw: double word/dword.
n: Short Int.
p: a pointer variable containing the address of a variable.
sz: old style ASCIIZ null-terminated string.
w: WORD unsigned int.
x, y: shorts used to denote coordinates.
This article was originally written by Pigsbig78
|This is an article from http://www.osix.net - view the original at: http://www.osix.net/modules/article/?id=245|