merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 19 Aug 2010 17:03:15 +0300
changeset 493 48a225d22907
parent 492 c25bb5813168 (current diff)
parent 491 8ec36ad14f7a (diff)
child 494 e0fa3c7c920a
merged
3d.rst
bnf.rst
color.rst
cvs.rst
cygwin.rst
devel-rules.rst
display.rst
emul.rst
gamepad.rst
image.rst
make.rst
midi.rst
msvc.rst
posix.rst
power.rst
prettyprint.rst
record.rst
signal.rst
ssh.rst
style-checker.rst
syntax-highlighter.rst
uri.rst
vm.rst
web.rst
wget.rst
xml.rst
--- a/devel-windows.rst	Thu Aug 19 16:58:15 2010 +0300
+++ b/devel-windows.rst	Thu Aug 19 17:03:15 2010 +0300
@@ -158,3 +158,59 @@
 
   http://sourceforge.net/projects/wtl
   http://en.wikipedia.org/wiki/Windows_Template_Library
+
+* Windows style variable names.
+
+  Prefix   |  Data type
+  ---------+-----------------------------------------
+  b        |  boolean
+  by       |  byte or unsigned char
+  c        |  char
+  cx / cy  |  short used as size
+  dw       |  DWORD, double word or unsigned long
+  fn       |  function
+  h        |  handle
+  i        |  int (integer)
+  l        |  Long
+  n        |  short int
+  p        |  a pointer variable containing the address of a variable
+  s        |  string
+  sz       |  ASCIIZ null-terminated string
+  w        |  WORD unsigned int
+  x, y     |  short used as coordinates
+
+  PrefixCategory  | Mean
+  ----------------+----------------
+  CS              | Class style
+  CW              | Create window
+  DT              | Draw text
+  IDC             | Cursor ID
+  IDI             | Icon ID
+  WM              | Window message
+  WS              | Window style
+
+  Data type | Meaning
+  ----------+-------------------------------------------------------------------
+  FAR       | Same as far. Identifies an address that originally used the
+            | segment:offset addressing schema. Now FAR simply identifies a
+            | (default) 32-bit address but may be omitted entirely in many cases.
+            |
+  PASCAL    | Same as Pascal. The Pascal convention demanded by Windows
+            | defines the order in which arguments are found in the stack when
+            | passed as calling parameters.
+            |
+  WORD	    | Unsigned integer (16 bits)
+            |
+  UINT      | Unsigned integer, same as WORD
+            |
+  DWORD     | Double word, unsigned long int (32 bits)
+            |
+  LONG      | Signed long integer (32 bits)
+            |
+  LPSTR     | Long (far) pointer to character string
+            |
+  NEAR      | Obsolete, previously identified an address value within a 16KB
+            | memory block.
+
+  http://www.tenouk.com/cnotation.html
+                C/C++ NOTATION STORY