首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

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

2013-07-08 
Delphi开发的DLL与VC通信问题用Delphi制作的DLL,导出一个接口的实现ITest interfaceprocedure SetInt(Va

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

热点排行