T
Tomaz Rotovnik
How can I get array of unsigned char from VC++ dll to VB
For example:
I declared next function in VC++ dll:
int funct(int size, unsigned char* array)
I want to read the contents of array in VB
Public Function Func(ByVal size As Long, ByRef array As Byte) as Long
What should I do to read an array
Whay is this wrong?
Dim ar1(10) As Byte
For i = 0 To 10
ar1(i) = array(i)
Next i
For example:
I declared next function in VC++ dll:
int funct(int size, unsigned char* array)
I want to read the contents of array in VB
Public Function Func(ByVal size As Long, ByRef array As Byte) as Long
What should I do to read an array
Whay is this wrong?
Dim ar1(10) As Byte
For i = 0 To 10
ar1(i) = array(i)
Next i