vb.net 调用动态库.dll函数参数是LPSTR类型的怎么处理 急
在.net 中
函数 test 在a.dll中的原型是 int test(LPSTR BH)
在vb.net 中怎么返回LPSTR类型的数值,现在直接
<DllImport("a.dll ", CharSet:=CharSet.Ansi, SetlastError:=True)> Private Shared Function test(ByVal buff1 As String) As Integer
End Function
dim strbh as string
MessageBox.Show(strbh )
这样直接用的话返回的是 乱码