You can always use macros! Just look at how beautiful and elegant and easy to learn and transparent to debug the Microsoft C++ MFC COM/OLE/IDispatch/ActiveX object system macrology is. /s
https://learn.microsoft.com/en-us/cpp/mfc/tn038-mfc-ole-iunk...