The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: Rsir on August 30, 2009, 04:42:14 PM

Title: variable naming conventions
Post by: Rsir on August 30, 2009, 04:42:14 PM
Looking for the rules to name variables, etc.
And understand what variables are doing by reading their names.

I googled < api assembly naming conventions >

but still no fast usable result.
trying to understand the purpose of the variables in the win32api helpfile,
Hungarian notation is insufficient and seems also a bit out of date.

does anyone know a link to a clear explanation?
Title: Re: variable naming conventions
Post by: dedndave on August 30, 2009, 05:31:04 PM
http://msdn.microsoft.com/en-us/library/aa260976(VS.60).aspx

http://web.mst.edu/~cpp/common/hungarian.html

there are many others - just google "Hungarian notation"
can you give an example that isn't documented in those places ?

it may be helpful to understand that the conventions were born in a world of C programmers
i.e. C coding documentation may be a good place to look
Title: Re: variable naming conventions
Post by: Tedd on August 30, 2009, 10:25:54 PM
Also, http://msdn.microsoft.com/en-us/library/aa378932%28VS.85%29.aspx
Title: Re: variable naming conventions
Post by: dedndave on August 30, 2009, 11:06:27 PM
i did some poking around and found this one...
http://www.byteshift.de/msg/hungarian-notation-doug-klunder
a little better - lol
Title: Re: variable naming conventions
Post by: Rsir on August 31, 2009, 06:38:16 PM
Thanks, Tedd, dedndave,
That was what I was looking for.