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
How to call Vensim 5.4c DLL in VB2008 professional
-
- Super Administrator
- Posts: 4832
- Joined: Wed Mar 05, 2003 3:10 am
Re: How to call Vensim 5.4c DLL in VB2008 professional
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559
Re: How to call Vensim 5.4c DLL in VB2008 professional
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
"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
-
- Super Administrator
- Posts: 4832
- Joined: Wed Mar 05, 2003 3:10 am
Re: How to call Vensim 5.4c DLL in VB2008 professional
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.
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
http://www.ventanasystems.co.uk/forum/v ... f=2&t=4391
Units are important!
http://www.bbc.co.uk/news/magazine-27509559