Code: Select all
int __stdcall MyFunc(char *buf, long length);
Code: Select all
Declare Function MyFunc(ByVal buf as Long, ByVal len As Long) As Long
Code: Select all
Dim buf(1023) as Byte ' 1024 element array
MyFunc VarPtr(buf(0)), 1024
Code: Select all
int __stdcall MyFunc(char *buf, long length);
Code: Select all
Declare Function MyFunc(ByVal buf as Long, ByVal len As Long) As Long
Code: Select all
Dim buf(1023) as Byte ' 1024 element array
MyFunc VarPtr(buf(0)), 1024