2020-08-31 C#调用Delphi DLL 使用举例
纯手写来段!
最近想把Delphi写的程序转成C# ,但其中有些数据转有点麻烦,写了个Dll ,供C#调用
1.从DelphiDll中获得[整数]址传递参数
Delphi代码如下:
procedure getVarInt(var i:Integer);stdcall;
procedure getVarInt(var i:Integer);
begin
inc(i);
end;
.Net代码:
[DllImport(__DLLName, EntryPoint =...
原创
2020-08-31 13:48:27 ·
703 阅读 ·
0 评论