Function acedGetEnv in ObjectARX 2015 has new signature:
int acedGetEnv (const ACHAR *sym, ACHAR *var, size_t nBufLen);
instead of ObjectARX 2014 and early:
int acedGetEnv (const ACHAR *sym, ACHAR *var);
So code have to look like this (not tested):
[DllImport("accore.dll", CallingConvention = CallingConvention.Cdecl, CharSet = CharSet.Unicode, EntryPoint = "acedGetEnv")] extern static private Int32 acedGetEnv15(string var, StringBuilder val, UIntPtr valLen);
Thank you Alexander!
I saw that the function changed when I was looking through the 2015 arxdoc.chm for info on it, but I kind of glazed over it!
Keep up the great work!