COM-Classes
COM-Classes copied to clipboard
minimize dependencies
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
This means helper classes / methods should
- accept pointers for (nested) structures (NOT for VARIANTs)
- output pointers (
FromStructPtr()
) if class is not available (applies to VARIANTs, too) - find some way to calculate size if nested structure classes are not available