Page 1 of 1
How to call Vensim 5.4c DLL in VB2008 professional
Posted: Thu Jun 09, 2011 1:03 am
by Paul Anim
Hi to all,
I am using vensim 5.4c and I want to call the dll in vb 2008 but am unable to find my way around. please help.
Thanks
Re: How to call Vensim 5.4c DLL in VB2008 professional
Posted: Thu Jun 09, 2011 8:08 am
by Administrator
Have you looked at the sample code that ships with Vensim? There is a VB6 example that should open and run in VB2008 fine.
Re: How to call Vensim 5.4c DLL in VB2008 professional
Posted: Thu Jun 09, 2011 11:08 pm
by Paul Anim
I copied the sample vb6 code to the vb2008 but there seems to be something wrong with e code. Below is the code
"Private Declare Function vensim_be_quiet Lib "vendll32.dll" (ByVal quietflag As Long) As Long"
Could you please help me with this code and also where shld the vendll32 be place on vb folder.
Am new to Vb so i need ur help
Re: How to call Vensim 5.4c DLL in VB2008 professional
Posted: Fri Jun 10, 2011 6:28 am
by Administrator
The best thing to do is open the sample project in VB2008 and run it. It has calls to all the various DLL functions so you can see how they are used.
vendll32.dll is usually installed to c:\windows\system32, and should not be moved from there.
Hope this helps.
Tony.