在vb中声明如下:
declare function write1 lib "easy12.dll" (byref pdata as byte,byval ilen as integer) as integer
在delphi中如何声明?
在vb中调用如下:
dim combuf(1) as byte
combuf(0)=asc("w")
combuf(1)=2
st=write1(combuf(0),2)
在delphi中如何调用呢?
其中pdata为缓冲区首地址,ilen为写数据长度
declare function write1 lib "easy12.dll" (byref pdata as byte,byval ilen as integer) as integer
在delphi中如何声明?
在vb中调用如下:
dim combuf(1) as byte
combuf(0)=asc("w")
combuf(1)=2
st=write1(combuf(0),2)
在delphi中如何调用呢?
其中pdata为缓冲区首地址,ilen为写数据长度
解决方案 »
- 急!!!Wise 打包安装时,如何设定默认安装的文件路径不在 C 盘下面,而是在 D盘下面呀?
- 界面图形问题
- 三层结构中在客户端如何注册?
- 如何用DELphi获得不断变化的动态外部IP
- 用 delphi5 + Crystal Reports 8 制作 柏拉图 请各位帮帮忙...
- tdbedit里面输入小数的问题?
- 在线等待,各位大虾救我啊
- Xe7横着屏幕的时候,如果让Pagecontrol的按钮显示在侧边
- 将二进制文件保存的信息存入数据库问题!!
- 初学求解,DATASNAP客户端中的TSQLConnection控件ACTIVE=True时老是SOCKET错误
- 十分着急!!!
- 初学:timer为何不执行?
function writel(var pdata:byte;ilen:integer):integer;stdcall;
function WriteBuffer(bData:Byte;iLen:Integer):Integer;stdcall; external 'easy12.dll' name 'writel'
不用var的
调用第二种格式就可以了