I have created my DLL with a funtion and pass two strings to it.
The second string I want to stick some status info in from PB.
However, to get this to work, I have to pad the string prior calling PB.
VB
Declare MyFunc lib "MyDLL.DLL" (ByVal string1$, ByVal string2$) as long
sub Command1_Click()
dim rc as long
dim string2 as string
'I now have to create space in string2 so that PB can change it.
string2 = space(200)
rc= MyFunc("Test",string2)
end sub
My question is, how can I change it so that I don't need to
'stuff' string2 prior to calling ?
p.s. MyFunc has the two strings as ASCIIZ's
Thanks
Terry
------------------
The second string I want to stick some status info in from PB.
However, to get this to work, I have to pad the string prior calling PB.
VB
Declare MyFunc lib "MyDLL.DLL" (ByVal string1$, ByVal string2$) as long
sub Command1_Click()
dim rc as long
dim string2 as string
'I now have to create space in string2 so that PB can change it.
string2 = space(200)
rc= MyFunc("Test",string2)
end sub
My question is, how can I change it so that I don't need to
'stuff' string2 prior to calling ?
p.s. MyFunc has the two strings as ASCIIZ's
Thanks
Terry
------------------
Comment