[Mono-list] embedding mono: how to pass c++ pointer to and from CLI?

Elmar Haneke elmar at haneke.de
Wed Feb 10 11:44:32 UTC 2016


> and...how to pass an array from c# to c++? 

an "array of byte" is usually marshalled as an pointer when using P/Invoke.

When using "internal calls" there is no Marshalling at all, c++ code
does recieve an pointer to an mono object. Read documentation to find
out how to access strings, arrays etc.

Elmar


More information about the Mono-list mailing list