读书人

Delphi开发的DLL与VC通信有关问题

发布时间: 2013-07-08 14:13:00 作者: rapoo

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下应该如何去调用?
[解决办法]
直接写个输出表就可以了,都不知道你在说什么
输出表函数 里面定义 传入参数 和输出参数就好了

读书人网 >.NET

热点推荐