hi alucard,
with the approach that i have described it is possible to have a gcnew code in your dllimport function.
the reason that it works in 11.0 out of the box but not in 13.0 is that DLL calling has been changed internally. however i would still advise to use 13.0 if you can make it work with my proposed changes because even though you need some setup work the approach is more stable.
kind regards,
ulrich