哪位高手帮帮忙将下面的码翻译成vb的代码?并给出简单的调用语句!谢谢
Function tagOpen(port:integer):boolean;stdcall;external 'tagitfunction.dll' name 'tagOpen';
Procedure tagClose;stdcall;external 'tagitfunction.dll' name 'tagClose';
Function tagGetId(var idbuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagGetId';
Function tagBlockRead(blockNo:integer;var readBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockRead';
Function tagBlockWrite(blockNo:integer; writeBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockWrite';
Function tagBlockMRead(blockNo,Len:integer;var readBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockMRead';
Function tagBlockMWrite(blockNo:integer; writeBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockMWrite';
Function tagBlockLock(blockNo:integer):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockLock';
Function tagisBlockLock(blockNo:integer;var isLock:boolean):integer;stdcall;external 'tagitfunction.dll' name 'tagIsBlockLock';
Function tagOpen(port:integer):boolean;stdcall;external 'tagitfunction.dll' name 'tagOpen';
Procedure tagClose;stdcall;external 'tagitfunction.dll' name 'tagClose';
Function tagGetId(var idbuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagGetId';
Function tagBlockRead(blockNo:integer;var readBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockRead';
Function tagBlockWrite(blockNo:integer; writeBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockWrite';
Function tagBlockMRead(blockNo,Len:integer;var readBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockMRead';
Function tagBlockMWrite(blockNo:integer; writeBuf:shortstring):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockMWrite';
Function tagBlockLock(blockNo:integer):integer;stdcall;external 'tagitfunction.dll' name 'tagBlockLock';
Function tagisBlockLock(blockNo:integer;var isLock:boolean):integer;stdcall;external 'tagitfunction.dll' name 'tagIsBlockLock';
解决方案 »
- 如何通过应用程序将几个ocx控件打包成cab网页下载到客户端并安装?
- 有哪位大侠知道在Delphi中通过ODBC连接SYBASE数据库的方法?
- 想实现一个功能,不知道可不可行?或有什么好建议!
- 我的SQLSERVER数据库里原来的数据是中文简体的,我现在想把数据改成大五码(BIG-5)以便在繁体操作系统下可以用,有什么最好,最快的方法
- WebBrowser控件小问题,回复就有分,问题解决就结贴
- 无数层结点压死我了!
- 关于DbGrid控件的问题。
- 我下了一个delphi6企业汉化工具,为什么汉化不了我的delphi6,说我的delphi632。exe是未知版本
- 请教各位开发经验丰富的高手......(关于销售订单管理)
- 还是这里人气旺,问一个别的问题,知道的请回答
- 救我
- 类型转换问题。
Private Declare Function tagOpen Lib "tagitfunction" (ByVal port as Long) As Boolean
Private Declare Sub tagClose Lib "tagitfunction.dll" ();
Private Declare Function tagGetId Lib "tagitfunction.dll" (ByVal idBuf As String) As Integer
Private Declare Function tagBlockRead Lib "tagitfunction.dll" (ByVal blockNo As Long,ByVal readBuf As String) As Integer
Private Declare Function tagBlockWrite Lib "tagitfunction.dll" (ByVal blockNo As Long,ByVal writeBuf(255) As Byte) As Integer
Private Declare Function tagBlockMRead Lib "tagitfunction.dll" (ByVal blockNo As Long,dwLen As Long,ByVal readBuf String) As Integer
Private Declare Function tagBlockMWrite Lib "tagitfunction.dll" (ByVal blockNo As Long,ByVal writeBuf(255) As Byte) As Integer
Private Declare Function tagBlockLock Lib "tagitfunction.dll" (ByVal blockNo As Long) As Integer
Private Declare Function tagisBlockLock Lib "tagitfunction.dll" (ByVal blockNo As Long,ByRef isLock As Boolean) As Integer如果有问题就联系我阿
bArr = StrConv("abcd", vbFromUnicode)
这个bArr就是了
那么做调用参数时:
1:msg:shortstring:调用的应该是字符串的拷贝。
2:var msg:shortstring:调用的应该是地址。
上面的说法对吧!
对应vb中怎么解决这些参数调用问题!请指点!