Page 2 of 2
Hungarian notation???
Posted: Thu Sep 18, 2003 1:41 pm
by Fangbeast
GedB wrote:
Weird, I speak fluent Hungarian and i've never heard of that.
"This causes so much confusion that they had to invent Hungarian Notation to tell you its really a long pointer to a string (lpsz). Then their listings looks like Hungarian (hence the name)"
If you are talking about the "sz" part of the lpsz (and I don't know if you are), it's not notation, it's our spelling so that reference confused me.
sz = s in English, it's our equivalent of 'phonetic' spelling

:)
ROFL (English is convoluted enough without making it more complicated, my cheeks ache from laughing)
Posted: Thu Sep 18, 2003 5:37 pm
by Kale
Hungarian notation was named so in honor of the legendary Micro$oft programmer Charles Simonyi. Very simply, the variable name begins with a lowercase letter or letters that denotes the data type of the variable.
Code: Select all
c char or WCHAR or TCHAR
by BYTE (unsigned char)
n short
i int
x, y int used as x-coordinate or y-coordinate
cx, cy int used as x or y lenght; c stands for "count"
b or f BOOL (int); f stands for "flag"
w WORD (unsigned short)
l LONG (long)
dw DWORD (unsigned long)
fn function
s string
sz string terminated by 0 character
h handle
p pointer
Used extensively in Win32 API
http://www.gregleg.com/oldHome/hungarian.html