MXS DotNet > System.Reflection.Pointer to System.IntPtr


#1

Let’s say I have a pointer to MXS_Editor_Interface* as:

ptr = ((dotNetClass "Autodesk.Max.GlobalInterface").Instance.theMXSEditorInterface.unmanaged())

now I want to get unboxed real pointer…
using C# it’s something like:

unsafe static IntPtr UnsafePtr(Pointer ptr)
{
	return (IntPtr)Pointer.Unbox(ptr);
}

in MXS, of course, I can compile a runtime assembly, but …
Is there a way to achieve the same result in MXS without assembly?


#2

it was renamed to NativePointer or something like that. As you can see both point to the same address


#3

Super! Thank you. I was sure I was missing something very simple