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
VENSIM & .DLL
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
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.
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.
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
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
-
- Super Administrator
- Posts: 4573
- Joined: Wed Mar 05, 2003 3:10 am
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.
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.