Mark Benningfield
Hello All.
Barbara:
In the C++ signature of the function, does it say (BYTE **aux), as in your OP, or (BYTE aux**) As James pointed out, the stars are important, and where they are is equally important.
BYTE **aux returns a byte value, whereas BYTE aux** is a pointer to a pointer that points to a byte array. Also as James pointed out, getting the final address of the array is going to require a little fancy footwork, because I don't thing C# directly supports spanning pointer pointers.
Let us know, and also, we'll need to know if the C++ code has any way of determining the size of the buffer, if it is one.
HTH.