New feature: Delphi Host can load COM plugins
THYBaseModuleManager (and his descendants) can load COM plugins.
usage:
ModuleManager.LoadModule('{C590127E-FCBB-4FBA-A6A6-3BF2C5F7D359}');
or
ModuleManager.LoadComModule('{C590127E-FCBB-4FBA-A6A6-3BF2C5F7D359}');
where is {C590127E-FCBB-4FBA-A6A6-3BF2C5F7D359}
- guid of COM object.
COM object have to support IHYCrossPlatformModule
interface.
New feature: Delphi templates allow to generate COM plugins
New plugin modules are generated from template contain COM_PLUGIN definition that allows to use them as COM plugins:
{.$DEFINE COM_PLUGIN}
After you uncomment above definition and build plugin, you have to register it with regsvr32.exe
and admin rights as
C:\Windows\System32\regsvr32.exe <fullname_with_path>
or
C:\Windows\SysWOW64\regsvr32.exe <fullname_with_path>
depending on your platform.
Plugin contains Class_HydraComServer
guid constant that should be used for loading this COM plugin
Note: since .1281