Document important COM implementation macro limitation

These macros can't be used with multiple inheritance, as they don't do
anything to cast the pointer to the correct type in this case.
This commit is contained in:
Vadim Zeitlin
2022-05-27 00:29:20 +01:00
parent c93f5350a3
commit 0caddb4472

View File

@@ -39,6 +39,9 @@ extern WXDLLIMPEXP_CORE bool IsIidFromList(REFIID riid, const IID *aIids[], size
// ============================================================================
/*
WARNING: This does NOT work with multiple inheritance, so multiple
interfaces can only be supported when they inherit from each other.
The most dumb implementation of IUnknown methods. We don't support
aggregation nor containment, but for 99% of cases this simple
implementation is quite enough.