Delphi开发的DLL与VC通信问题
用Delphi制作的DLL,导出一个接口的实现
ITest = interface
procedure SetInt(Value: Integer); stdcall;
function GetInt(Value: Integer): Integer; stdcall;
end;
TTest = class(TInterfacedObject, ITest)
procedure SetInt(Value: Integer); stdcall;
function GetInt(Value: Integer): Integer; stdcall;
end;
function Get: ITest;
begin
Result := TTest.Create;
end;
如果不考虑把interface改为纯虚类的方法的话,在VC下应该如何去调用?
[解决办法]
直接写个输出表就可以了,都不知道你在说什么
输出表函数 里面定义 传入参数 和输出参数就好了