Page 1 of 1

Double precision vendll32.dll

Posted: Thu May 22, 2008 12:25 pm
by dmoraschi
Hi all,
I am trying to start a simulation from Excel:

retval& = vensim_command("SPECIAL>LOADMODEL|D:\source code\Vensim\name_of_model.vpm")
If retval& = 0 Then Exit Sub
retval& = vensim_command("MENU>SYNTHESIM|O")
If retval& = 0 Then Exit Sub
retval& = vensim_command("SYNTHESIM>AUTO|0")
If retval& = 0 Then Exit Sub

The model must be run with the double precision DSS, but when I run it from Excel it runs in the single precision DSS. How can I tell from VB to start the double precision simulation?

Thanks,
Davide Moraschi

Posted: Thu May 22, 2008 2:03 pm
by Administrator
Have you edited the function call declarations to call into the double precision dll?

Replace "vendll32.dll" with "vdpdll32.dll" and it should work.

Posted: Fri May 23, 2008 7:12 am
by dmoraschi
Yes it WORKS!
Thanks a lot.
Davide Moraschi