!急!!调用DLL时的传地址的问题!
DLL调用声明如下
Public Declare Function ExecOP Lib "dzdll.dll" _
(ByRef nCmd As Integer, ByVal nComlen As Integer, ByVal strCommand _
As String, ByRef strRetData() As Byte) As Integer
调用ExecOP函数如下
Private Function Exec(ByVal nCmd As Integer, ByVal nComlen As Integer, ByVal strData As String)
Dim nInt(0) As Integer
Dim nResult As Integer
Dim strRD() As Byte
nInt(0) = nCmd
ReDim strRD(1024)
nResult = ExecOP(nInt(0), nComlen, strData, (strRD))
MsgBox nResult
End Function
一运行,没有任何提示,VB就死!请指点!! 一定给分!