Posts: 1,430
Registered: ‎04-09-2008
Message 11 of 12 (75 Views)

Re: PrinterConfigPath with two paths

04-03-2014 01:17 AM in reply to: Rob.O

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);



Пожалуйста не забывайте про Утвердить в качестве решения! Утвердить в качестве решения и Give Kudos!Баллы
Please remember to Accept Solution! Accept as Solution and Give Kudos!Kudos

Posts: 259
Registered: ‎06-25-2007
Message 12 of 12 (62 Views)

Re: PrinterConfigPath with two paths

04-03-2014 07:49 AM in reply to: Alexander.Rivilis

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!


Works perfectly!


Keep up the great work!



Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.