Hello,

I have a DLL written in C++: one of its functions returns a pointer to a
memory buffer in form of a long value (32 bits); when calling this function
from within Visual Basic, which is the best way to let Visual Basic access
this existing buffer?

I know that Visual Basic lets define a memory buffers like this:
Dim buffer() As Byte
how can I initialize this buffer using the long value returned by the DLL?

Thanks in advance and Kind Regards

Severino