> 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
> pointer I get in C# to this call of drawMesh?

You can use IntPtr to pass arbitrary pointer type - it's up to you to
take care not to confuse pointer types.

Elmar
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to