Page 1 of 1

VENSIM & .DLL

Posted: Tue Jan 31, 2006 1:07 am
by Anna
Sir:
Where is the place in Vensim that connect with .dll files.
I look for Vensim's help but it says little about that.
Do the .dll files which were built in Vensim must be written in C or C++?I can only write dll in Fortran .Do you or someone have some books,guides,or any reference materials to give me ,please? Thanks a lot!
Anna

Posted: Tue Jan 31, 2006 9:13 am
by Administrator
Hi,

There is more info on the Vensim DLL at
http://www.vensim.com/documentation/vensim.htm

Look in the DSS reference supplement at chapter 11.

It has been many years since I saw any Fortran code so I cannot help with that side of things. Maybe someone else can.

Tony.

Posted: Mon Feb 06, 2006 8:54 am
by Anna
I have already seen those informations you talk to me.All of examples your company provide express how to use VB,JAVA,..and so on,to call vensim by using vendll32.dll.
But What I wnat is to know how to vensim call .dll file(the dll file can input a lot of variables that produce by other model)
Do it must be run in Venapp by SETTING>EXTERNALFUNCTION/DLL?
If I build a new dll ,how to register the new dll into vensim.h?
Thanks a lot !
Anna :(

Posted: Mon Feb 06, 2006 11:19 am
by Administrator
Yes, you need to use the external function interface.

Chapter 8 of the DSS reference supplement details how to compile and use an external function library. And the example that ships with Vensim is very well commented as well.

You write a function that accesses your other DLL, then call that function from Vensim like you would call "COSINE". It is relatively straightforward, but you will need some programming knowledge.

Hope this helps.

Tony.