How to call Vensim 5.4c DLL in VB2008 professional

Use this forum to post Vensim related questions.
Post Reply
Paul Anim
Junior Member
Posts: 19
Joined: Thu Jun 09, 2011 12:19 am

How to call Vensim 5.4c DLL in VB2008 professional

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

Re: How to call Vensim 5.4c DLL in VB2008 professional

Post 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.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Paul Anim
Junior Member
Posts: 19
Joined: Thu Jun 09, 2011 12:19 am

Re: How to call Vensim 5.4c DLL in VB2008 professional

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

Re: How to call Vensim 5.4c DLL in VB2008 professional

Post 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.
Advice to posters seeking help (it really helps us to help you)
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391

Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Post Reply