Last suggestion is indeed the correct code. [in, out] in C++ almost always means you need a var for a reference but not when it's a pointer value! Note: The usual way when C/C++ hints to a pointer, is a parameter starting with pp (with some exceptions) starting with ppp is always a pointer value to be declared in Delphi and almost always when it points to an array.
Last suggestion is indeed the correct code. [in, out] in C++ almost always means you need a var for a reference but not when it's a pointer value! Note: The usual way when C/C++ hints to a pointer, is a parameter starting with pp (with some exceptions) starting with ppp is always a pointer value Delphi and almost always when it points to an array.
Last suggestion is indeed the correct code. [in, out] in C++ always means you need a var. A pointer will not work, because Delphi internally takes care of that. The usual way that hints to a pointer, is a parameter starting with pp (with some exceptions) starting with ppp is always a pointer value.