I built the sample Delphi Host WPF with Visual Studio 2017 and successfully built and ran the Delphi Host sample. Though, when I try to generate the interfaces with the Tools - Hydra - Import from .NET Assemblies, I always get the same “Interface not supported” error. It is impossible to generate the interfaces.
I built the sample with .NET Framework 3.0
date/time : 2017-05-22, 16:23:04, 567ms
operating system : Windows 10 x64 build 14393
system language : French
system up time : 1 hour 14 minutes
program up time : 10 minutes 20 seconds
processors : 8x Intel(R) Core(TM) i7-3720QM CPU @ 2.60GHz
physical memory : 10287/16291 MB (free/total)
free disk space : (C:) 17,05 GB
display mode : 1920x1200, 32 bit
process id : $91c
allocated memory : 440,93 MB
largest free block : 1,98 GB
command line : "C:\Program Files (x86)\Embarcadero\Studio\18.0\bin\bds.exe" "-pDelphi"
executable : bds.exe
current module : madExcept_.bpl
exec. date/time : 2016-04-04 15:55
version : 24.0.22858.6822
compiled with : Delphi 10.1 Berlin
madExcept version : 4.0.16
callstack crc : $450c2e58, $5b589e5c, $0138a107
exception number : 1
exception class : EIntfCastError
exception message : Interface non supportée.
main thread ($3514):
5009c6b3 +067 rtl240.bpl System.SysUtils 22167 +14 ErrorHandler
5005a3e2 +016 rtl240.bpl System 5542 +3 ErrorAt
5005a426 +00e rtl240.bpl System 5553 +1 Error
335f18e1 +06d Hydra_VCL_D24.bpl Uhyvclcrossplatformpluginwrapper THYVCLCrossPlatformPluginWrapper.SetHost
335f3142 +0f2 Hydra_VCL_D24.bpl Uhyclrmanagedpluginfactories THYManagedPluginFactory.CreateInstance
335fa59d +0ad Hydra_VCL_D24.bpl Uhymodulemanager THYModuleManager.CreateInstance
335fac45 +019 Hydra_VCL_D24.bpl Uhymodulemanager THYModuleManager.CreateInstance
3348d513 +02b Hydra_IDE_D24.bpl Uhyidedata THYIDEData.GetDotNetToDelphiConverter
3348e157 +07f Hydra_IDE_D24.bpl Uhyideimportdotnetassembliesform THYIDEImportDotNetAssembliesForm.Execute
3348f3d2 +02e Hydra_IDE_D24.bpl Uhyidemenu THYMenuWizard.OnImportAssemblies
5016ff07 +00f rtl240.bpl System.Classes 16674 +3 TBasicAction.Execute
5016fd73 +013 rtl240.bpl System.Classes 16585 +2 TBasicActionLink.Execute
21aa5815 +03d vclactnband240.bpl Vcl.ActnMenus 1078 +6 TCustomActionMenuBar.ExecAction
21aa70c0 +124 vclactnband240.bpl Vcl.ActnMenus 1844 +19 TCustomActionMenuBar.TrackMenu
21aaaae6 +042 vclactnband240.bpl Vcl.ActnMenus 3638 +5 TCustomActionMainMenuBar.TrackMenu
21aa53c9 +029 vclactnband240.bpl Vcl.ActnMenus 957 +3 TCustomActionMenuBar.CMItemClicked
50aa3b2a +2be vcl240.bpl Vcl.Controls 7313 +91 TControl.WndProc
50aa8675 +5e9 vcl240.bpl Vcl.Controls 10143 +158 TWinControl.WndProc
21aa71d6 +0aa vclactnband240.bpl Vcl.ActnMenus 1883 +25 TCustomActionMenuBar.WndProc
50aa7c94 +02c vcl240.bpl Vcl.Controls 9850 +3 TWinControl.MainWndProc
50170c64 +014 rtl240.bpl System.Classes 17178 +8 StdWndProc
75a8df9b +00b user32.dll DispatchMessageW
50beec6f +0f3 vcl240.bpl Vcl.Forms 10534 +23 TApplication.ProcessMessage
50beecb2 +00a vcl240.bpl Vcl.Forms 10564 +1 TApplication.HandleMessage
50beefe5 +0c9 vcl240.bpl Vcl.Forms 10702 +26 TApplication.Run
76a362c2 +022 KERNEL32.DLL BaseThreadInitThunk
=