Double precision vendll32.dll

Use this forum to post Vensim related questions.
Post Reply
dmoraschi
Junior Member
Posts: 3
Joined: Wed May 14, 2008 9:12 am

Double precision vendll32.dll

Post 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
Administrator
Super Administrator
Posts: 4838
Joined: Wed Mar 05, 2003 3:10 am

Post 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.
dmoraschi
Junior Member
Posts: 3
Joined: Wed May 14, 2008 9:12 am

Post by dmoraschi »

Yes it WORKS!
Thanks a lot.
Davide Moraschi
Post Reply