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

2016-02-10 Thread Elmar Haneke
> 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

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

2016-02-09 Thread sunsflower
and...how to pass an array from c# to c++? -- View this message in context: http://mono.1490590.n4.nabble.com/embedding-mono-how-to-pass-c-pointer-to-and-from-CLI-tp4667381p4667406.html Sent from the Mono - General mailing list archive at Nabble.com.

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

2016-02-08 Thread Elmar Haneke
> is there a way to pass a pointer to C# and pass it back to native functions? > for example I have a newMesh function in c++ which returns a pointer to a > Mesh class instance. How can I represent this pointer in C#? And if I have a > drawMesh method in c++ as an internal call method, how can I

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

2016-02-07 Thread sunsflower
is there a way to pass a pointer to C# and pass it back to native functions? for example I have a newMesh function in c++ which returns a pointer to a Mesh class instance. How can I represent this pointer in C#? And if I have a drawMesh method in c++ as an internal call method, how can I pass the

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

2016-02-07 Thread sunsflower
anyone knows anything about this? thanks very much! -- View this message in context: http://mono.1490590.n4.nabble.com/embedding-mono-how-to-pass-c-pointer-to-and-from-CLI-tp4667381p4667386.html Sent from the Mono - General mailing list archive at Nabble.com.