C# 如何更新Hydra接口的插件

C# 如何更新Hydra接口的插件,c#,delphi,hydra,C#,Delphi,Hydra,我正在为Delphi主机和.NET插件使用Hydra接口。这是IPlugin.cs。我想在HydraInterface.pas和IPlugin.cs中添加更多的方法和函数。但当我添加新方法并实现时,当我调试时,它只在IPlugin.cs处停止,而没有连接到HydraInterface.pas。如何更新C插件和Delphi接口 [Guid("B6135CAD-BF01-491B-8BF3-2D5D3059E731")] public interface IHostInterface : IHYC

我正在为Delphi主机和.NET插件使用Hydra接口。这是IPlugin.cs。我想在HydraInterface.pas和IPlugin.cs中添加更多的方法和函数。但当我添加新方法并实现时,当我调试时,它只在IPlugin.cs处停止,而没有连接到HydraInterface.pas。如何更新C插件和Delphi接口

 [Guid("B6135CAD-BF01-491B-8BF3-2D5D3059E731")]
public interface IHostInterface : IHYCrossPlatformInterface
{       
    bool WriteByte(string parameterValue, byte value);
    bool WriteString(string parameterValue, string value);
    bool WriteLong(string parameterValue, int value);
}   
这是Delphi端的HydraInterface.pas

IHostInterface = interface;
IHostInterface = interface(IHYCrossPlatformInterface)
['{B6135CAD-BF01-491B-8BF3-2D5D3059E731}']
function WriteRegisterByte (const parameterValue:WideString; const value:Byte): boolean; safecall;
function WriteLong(const parameterValue:WideString; const value:integer): boolean;safecall;
function WriteString(const parameterValue:WideString; const value:WideString): boolean;safecall;

COM接口中方法的声明顺序是二进制接口的一部分。方法声明的顺序用于确定COM接口vtable的布局。接口中方法的声明顺序不匹配,应该纠正这种差异

首先,方法的顺序不匹配是的,我按照你的建议做了。它工作得很好。谢谢大卫·赫弗南。