A great article about complexity of COM automation:
  1. Part 1: http://spec.winprog.org/typeinfo/
  2. Part 2: http://spec.winprog.org/typeinf2/
  3. Part 3: http://spec.winprog.org/typeinf3/