c#调用delphi开发的dll进行字符串传递
摘要:
1.delphi开发的dll中,以如下代码进行声明。library Icdll;uses SysUtils; function Check22:Pchar;stdcall; begin result:='ok'; end;exports Check22;beginend.2.在c#中进行调用。using System.Runtime.InteropServices; //必须引用 namespace TestDll{ public partial class Form1 : Form { [DllImport("Icdll.dll")] public sta 阅读全文
posted @ 2011-05-14 01:49 efangsoft 阅读(701) 评论(0) 推荐(0)
浙公网安备 33010602011771号