Notifications
Clear all

[Closed] MXS DotNet > System.Reflection.Pointer to System.IntPtr

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 Replies

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

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