Notifications
Clear all
[Closed] MXS DotNet > System.Reflection.Pointer to System.IntPtr
Jan 25, 2023 7:03 am
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
Jan 25, 2023 7:03 am
it was renamed to NativePointer or something like that. As you can see both point to the same address