Page 4 of 4

Posted: Mon May 04, 2009 1:47 am
by jack
all this change does is initialize the constants when the dll is opened, means you don't need m_apm_init() before you can access the constants, it also releses the memory used by the constants when the dll is closed.

Posted: Mon May 04, 2009 2:33 pm
by Arctic Fox
Thanks a lot, jack! It works like a charm :D
Is it possible to use the constants with ~520 digits instead of those with ~132?

Posted: Tue May 05, 2009 1:08 am
by jack
yes, you will have to comment-out the 132 constant definitions and remove the comment block from the 520, then recompile
the constant file is MAPMCNST.C in case did not know.
you also need to change this line in the file M_APM_LC.H
#define VALID_DECIMAL_PLACES 128

Posted: Tue May 05, 2009 2:56 pm
by Arctic Fox
That's great! :D
Any news regarding m_apm_to_fixpt_stringexp() and FreeMemory()?

Posted: Wed May 06, 2009 1:16 am
by jack
this will work

Code: Select all

ImportC "msvcrt.lib"
  free(*mem)
EndImport


al.l=m_apm_to_fixpt_stringexp(128,*MM_PI,'.',',',5)
s.s=PeekS(al)
free(al)

Posted: Wed May 06, 2009 2:23 pm
by Arctic Fox
Thanks a bunch jack!
It works very well! :D