Groovy hepcat Marc Boeren jived with All on 06 Feb 97 18:06:00!
coding style's a cool scene. Dig it!
MB> Is there some general style in coding, like variable prefixes, eg
MB> I've read somewhere something about Hungarian notation, or something?
MB> Does anybody use this, and in what form?
Hungarian notation is used extensively in Windows programming. It
may also be used on other platforms; it's up to the individual
programmer.
This notation uses prefixes (as you asked above) to describe the
types of variables, eg.:
char *szStringName; /* sz prefix signifies a NULL terminated string */
BOOL bToggle; /* b prefix signifies a BOOL (typedef int BOOL) */
char cByte; /* c prefix signifies a char type */
fnFunctionName(); /* fn prefix signifies a function */
int iNumber; /* i prefix signifies an int */
long lNumber; /* l prefix signifies a long int */
char far *lpData; /* lp prefix signifies a far pointer */
unsigned long dwFoo; /* dw prefix signifies a double word */
These are just a few, but give you some idea about Hungarian
notation.
Wolvaen
... Old Butchers never die, they just meat somewhere else.
--- Blue Wave/RA v2.20
---------------
* Origin: The Gate, Melbourne Australia, +61-3-9809-5097 28.8k (3:633/159)
|