Library missing
Library missing
I have installed Vensim 10.1.3 on my computer, but it seems to be missing the library vdpdll64.dll, I cannot find it in the directory. I want to use it to extract data from Vensim to Excel using the vensim_get_data function as defined below. How can I retrieve it? I usually use Vensim in 32 bits, using the equivalent library (vdpdll32.lib).
Thank you.
Private Declare PtrSafe Function vensim_get_data Lib "VdpDLL64.dll" (ByVal filename$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
Thank you.
Private Declare PtrSafe Function vensim_get_data Lib "VdpDLL64.dll" (ByVal filename$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
-
- Super Administrator
- Posts: 4858
- Joined: Wed Mar 05, 2003 3:10 am
Re: Library missing
We no longer supply that, you should be able to use vendll32.dll.
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: Library missing
Hi,
I tried replacing "VdpDLL64.dll" in the " vensim_get_data" definition with vendll32.dll (see the line below), copying this library into this folder on my computer: C:\Users\Public\Vensim\DLL
In this case, the vensim_get_data function returns 0 instead of a fail; So, It still does not work. But I do not know why, I have checked that the path and the file name are accurate, as well as the other arguments. I have also tried with similar libraries (vdpdll32.lib for instance), but nothing seems to work. Have I missed something? Thanks.
Private Declare PtrSafe Function vensim_get_data Lib "vendll32.dll" (ByVal FileName$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
I tried replacing "VdpDLL64.dll" in the " vensim_get_data" definition with vendll32.dll (see the line below), copying this library into this folder on my computer: C:\Users\Public\Vensim\DLL
In this case, the vensim_get_data function returns 0 instead of a fail; So, It still does not work. But I do not know why, I have checked that the path and the file name are accurate, as well as the other arguments. I have also tried with similar libraries (vdpdll32.lib for instance), but nothing seems to work. Have I missed something? Thanks.
Private Declare PtrSafe Function vensim_get_data Lib "vendll32.dll" (ByVal FileName$, ByVal varName$, ByVal timename$, varvals As Single, timevals As Single, ByVal maxpoints As Integer) As Long
-
- Super Administrator
- Posts: 4858
- Joined: Wed Mar 05, 2003 3:10 am
Re: Library missing
It's impossible to say why it's not working given the limited information you have provided.
But a return value of 0 indicates the function was called correctly. So I would double check your path to the VDFX file and the variable name.
But a return value of 0 indicates the function was called correctly. So I would double check your path to the VDFX file and the variable name.
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: Library missing
Hi, I am attaching a folder including a .mdl file, a .vdf file generated with Vensim 6.3E, a .vdfx generated with Vensim 10.1.3 and a .xlsm file including a function called VDFx which is used to extract data from a vdf or a vdfx file.
This function works well with 32-bit Excel and the .vdf file, but I get a #VALUE! error in 64-bit. I did not find a"0" like the last time I checked. Can you check if you have the same issue on your side? Thank you very much .
This function works well with 32-bit Excel and the .vdf file, but I get a #VALUE! error in 64-bit. I did not find a"0" like the last time I checked. Can you check if you have the same issue on your side? Thank you very much .
-
- Super Administrator
- Posts: 4858
- Joined: Wed Mar 05, 2003 3:10 am
Re: Library missing
The code is still loading the 32 bit DLL, have you tried loading vendll64.dll instead?
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: Library missing
In the previous messages I understood that the vendll64.dll file was not longer provided, but that the vensim_get_data function should work with the 32 bit version even in 64 bit. When I installed Vensim 10.1.3 I could not find the vendll64.dll file, but if you can provide it, I would be happy to test it as that's probably why the function is not working.
-
- Super Administrator
- Posts: 4858
- Joined: Wed Mar 05, 2003 3:10 am
Re: Library missing
No, VdpDLL64.dll is no longer provided. That was a double precision version of the Vensim DLL, all versions of Vensim are now double precision so no need for a separate DLL.
If Vensim has been installed properly, vendll64.dll will be present in the path (C:\Windows\System32). There should be no need to do anything special other than try and load it.
If Vensim has been installed properly, vendll64.dll will be present in the path (C:\Windows\System32). There should be no need to do anything special other than try and load it.
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: Library missing
Thank you for this clarification. So I checked again, and I even uninstalled and reinstalled Vensim 10.1.3 but I could not find the file. Comparing with my current version of Vensim (Vensim 6.3E), I think the file should be here: C:\Users\Public\Vensim\DLL
I have attached you a screenshot of this folder as it currently stands, if that helps.
I have attached you a screenshot of this folder as it currently stands, if that helps.
-
- Super Administrator
- Posts: 4858
- Joined: Wed Mar 05, 2003 3:10 am
Re: Library missing
Don't compare with 6.3, that is over 10 years old. A lot has changed since then.
Make sure you install using admin permissions. vendll64.dll will be installed to c:\windows\system32, do not change this path or it will not work.
Make sure you install using admin permissions. vendll64.dll will be installed to c:\windows\system32, do not change this path or it will not work.
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: Library missing
It seems to be working now! I just had to use the right library, indeed. Thank you for you help!