function mytest(buf:TByteArray;len:integer):integer;stdcall;
begin
result := len;
end;
exports
mytest; [DllImport("C:\\Documents and Settings\\Administrator\\桌面\\新建文件夹\\Project1.dll")]
public extern static int mytest( byte[] buf,int len);
byte[] buf = new byte[10];
int a = mytest(buf, 98);
解决方案 »
- inkcanvas 的画线跟文字混写的问题
- C# static 方法 的泛型 怎么才能 new 啊
- 打包的时候,加不进要打包的文件?
- 请帮看看,在数据集的表中Find()方法查询复合键时的用法?
- 服务器提交了协议冲突. Section=ResponseStatusLine 的问题,好长时间了
- 请问我怎么得到ftp服务器上文件的大小阿?
- 新手求救
- 问个简单数据库问题
- WINFORM的时间问题
- 请问该如何解决“试图运行项目时出错:无法在WEB服务器上启动调试.未将项目配置为进行调试。”问题?
- 急急急急~~~~~·我想选中datagridview第一列中的一行,并删除,怎么做
- asp.net2.0 如何用异步处理的方式将文本文件中的数据插入到数据库,急!
你的意思是delphi定义数组不能用array of byte方式吗,晕这样的话我不是要重写所有这些方法