I'm trying to generate _TLB
import units for Outlook 2003, 2007 and 2010 (and also other OLE servers) analogous to the ones bundled with Delphi for Outlook 2000 and 2002. However, I couldn't get the type library importer to also generate the code for capturing events from the OLE servers that is found in the bundled units. The option to "Generate component wrappers" only creates wrappers for servers that are directly instantiatable but not for objects that are only returned via methods of other objects like TInspector
, TExplorer
, etc.
I could of course create the event handling code myself but that would be really tedious work.
Does anyone know if the importer contained with Delphi 2010 (tlibimp.exe
) can be tweaked to generate that code? I really doubt that back in the day Borland created the existing Outlook2000.pas
and OutlookXP.pas
units manually...
Are there maybe any other tools around that can do this?