i'm a newbie in using vb
need help on how to pass address of an array to a dll(coded in c++). i am just testing out my intended coding in a simpler code as shown below.
code is somthing like this
Public Shared Sub testpoint(ByRef N() As Byte)
' Leave function empty - DLLImport attribute forwards calls to
' testpoint to testpoint in test1.DLL.
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim c(20) As Byte
*function to call in the test1.dll*
void testpoint(char & output)
char * t = &output;
t = 'a';
i have created an array which can holds 21 items... but when i call the dll.. the array i got back is just contain 1 item..c(0).
is this the correct way to do it? or there is a better way?
thks in advance...