我使用九头蛇接口的德尔福主机和.NET插件。这是IPlugin.cs。我想在HydraInterface.pas和IPlugin.cs中添加更多的方法和函数。但是,当我添加新方法并实现和调试时,它只在IPlugin.cs停止,没有连接到HydraInterface.pas。如何同时更新C#插件和Delphi HydraInterface?
[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);
} 这是来自德尔福的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;发布于 2014-09-03 07:54:26
COM接口中方法声明的顺序是二进制接口的一部分。方法的顺序声明用于确定COM接口vtable的布局。接口中方法的声明顺序不匹配,您应该纠正这种差异。
https://stackoverflow.com/questions/25620835
复制相似问题