we have a problem with the import of interfaces from .net assemblies. Interface types are translated into << Unsupported Type >> (see below).
Are we doing something wrong?
Thanks,
Bernd
Source:
using RemObjects.Hydra.CrossPlatform;
using System;
using System.Runtime.InteropServices;
namespace Vehicles
{
[Guid("9CA09E61-2F4E-4B0D-B231-AC61AB38DBFB"), ComVisible(true)]
public interface ICar : IHYCrossPlatformInterface
{
}
[Guid("6396FC41-BFEE-43E9-800A-D3B666A3EA6D"), ComVisible(true)]
public interface IWheel : IHYCrossPlatformInterface
{
ICar Car { get; }
double Diameter { get; set; }
}
}
Result:
unit Hydra_Import;
{ This unit has been automatically created by Hydra. Any changes in this unit might be lost in automatic updates}
interface
uses
uHYCrossPlatformInterfaces;
type
ICar = interface;
IWheel = interface;
// Original name: Vehicles.ICar
ICar = interface(IHYCrossPlatformInterface)
['{9CA09E61-2F4E-4B0D-B231-AC61AB38DBFB}']
end;
// Original name: Vehicles.IWheel
IWheel = interface(IHYCrossPlatformInterface)
['{6396FC41-BFEE-43E9-800A-D3B666A3EA6D}']
function get_Car: << Unsupported Type >>; safecall;
function get_Diameter: Double; safecall;
procedure set_Diameter(const value: Double); safecall;
property Car: << Unsupported Type >> read get_Car;
property Diameter: Double read get_Diameter write set_Diameter;
end;
implementation
end.
Hello I just updated to the beta version: RemObjects Hydra - 6.1.0.1211.exe
Now when I try to Import the interfaces from a .NET assembly (using Delphi 10.3 Rio) I get the following error: