COM-Classes icon indicating copy to clipboard operation
COM-Classes copied to clipboard

minimize dependencies

Open maul-esel opened this issue 13 years ago • 1 comments

Minimize dependencies

Achieve less dependencies for each class by

  • ensuring every function that accepts another instance of a COM class can also handle a raw pointer
  • the same for struct classes
  • ensuring every function that returns an instance of a COM class (or retrieves it via byRef) returns a raw pointer if the class is not available
  • the same for struct class fields
  • document this

maul-esel avatar Jan 12 '12 18:01 maul-esel

This means helper classes / methods should

  1. accept pointers for (nested) structures (NOT for VARIANTs)
  2. output pointers (FromStructPtr()) if class is not available (applies to VARIANTs, too)
  3. find some way to calculate size if nested structure classes are not available

maul-esel avatar Feb 08 '12 17:02 maul-esel