int my_buff(char * buff) { memcpy(buffer,"testtest",8); return 1; }
<dllimport("mydll.dll",charset:->_ Overloads Shared Function my_buff(ByRef s() As Char) As Integer End Function Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim lo as String="" Dim j as Integer=0 j=my_buff(lo) End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)