.NET

Reply
Moderator
1,467 Posts
277 Kudos
Registered: ‎04-09-2008
Post 11 of 12

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

Valued Mentor
261 Posts
11 Kudos
Registered: ‎06-25-2007
Post 12 of 12

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!

 

Rob

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!