DELPHI调用C#写得DLL 文件(100分)

T

tieofox

Unregistered / Unconfirmed
GUEST, unregistred user!
DLL 文件中函数如下:
public static int Rdpt(int icd, string i, ref byte name);

请问在DELPHI中如何调用啊。我的错误的方法如下:
function Rdpt(hCom:longint;i:string;name: array of Byte):smallint;stdcall;
far;external '***.dll' ;
请各位大侠指点~~~~~~
 
应该是这样的:
function Rdpt(hCom:longint;i:string
var name: Byte):smallint;stdcall;
far;external '***.dll' ;
 
动态库中的文件应该声明调用惯例为stdcall;
 
没用的,c#写的不能调用!
除非你用delphi.net
 
我怀疑你根本没输出这个函数
一般调用.net写的类,可以将DLL注册成COM对象,然后Delphi使用COM来调用
 

Similar threads

回复
0
查看
655
不得闲
D
回复
0
查看
1K
DelphiTeacher的专栏
D
D
回复
0
查看
1K
DelphiTeacher的专栏
D
顶部