先声明
Public Declare Function getno Lib "a.dll" (ByRef p As string , ByVal nReg As Integer, ByVal nkx As Integer) As Integer再调用;
dim ret as integer
dim p as string
dim nReg as integer
dim nkx as integer
nReg=10
nkx=5
ret=getno(p,nReg,nKx)不知这样行吗?
Public Declare Function getno Lib "a.dll" (ByRef p As string , ByVal nReg As Integer, ByVal nkx As Integer) As Integer再调用;
dim ret as integer
dim p as string
dim nReg as integer
dim nkx as integer
nReg=10
nkx=5
ret=getno(p,nReg,nKx)不知这样行吗?
Public Declare Function getno Lib "a.dll" (ByVal p As string , ByVal nReg As Long, ByVal nkx As Long) As Long
Dim a as long
dim b as long...
getno(x(0),a,b)
ByRef传址字符串除外
参考
http://www.csdn.net/develop/read_article.asp?id=13460