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!
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!