int w;
int h;
unsigned char *ByteBuffer1;
unsigned char *ByteBuffer2;
len=ProcessBuf(ByteBuffer1,ByteBuffer2,w,h);
C++中没问题
-----------------------------------------------------------如在VB中调用此DLL
Declare Function ProcessBuf Lib "Test.DLL" (ByteBuffer1 as any,ByteBuffer2 as any,byval w as long,byval h as long) as long
dim buf1(1000) as byte,buf2(1000) as byte
dim w as long,h as long
dim rlen as long
...
..
rlen=ProcessBuf(buf1(0),buf2(0),w,h)提示DLL调用约定错误!rlen=ProcessBuf(varptr(buf1(0)),varptr(buf2(0)),w,h)
一样!是哪里出了错??