Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > DSS Supplement > Vensim DLL > Visual Basic Example

General (Prototype & Global) Code

Scroll Prev Top Next More

Include in this section the function prototypes needed.  You can copy and paste the prototypes in the examples.

Private Declare Function vensim_be_quiet Lib "vendll32.dll" (ByVal quietflag As Long) As Long

Private Declare Function vensim_check_status Lib "vendll32.dll" () As Long

Private Declare Function vensim_command Lib "vendlm32.dll" (ByVal Vcommand$) As Long

.........

Note that if you do not use one of the functions it does not matter.  Thus the easiest thing is just to copy all the prototypes for use in your code.

Dim tval(500) As Single

Dim tval2(500) As Single

Dim rval(500) As Single

Dim rval2(500) As Single

Dim tpoints1 As Integer

Dim tpoints2 As Integer

Some globals are used to store results.