ComObj.TAutoObject - methods implementing IDispatch could be virtual.

Summary

Currently, methods of TAutoObject class that implement the IDispatch interface are not virtual, l, however, they could be which will allow you to override these methods. Delphi also has them virtual. https://docwiki.embarcadero.com/Libraries/Athens/en/System.Win.ComObj.TAutoObject.GetIDsOfNames

System Information

  • **Operating system:**Windows
  • **Compiler version:**3.2.2, trunk

Possible fixes

I am attaching patch for main and fixes branches.

comobjautoobjvirt_fix.diff

comobjautoobjvirt_main.diff

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information