Page 1 of 2

Posted: 17 Apr 2014 15:15
by Tonton Luc
Hi,

My libcurl application works fine on XP machine but not on Seven 64 bits : do I need to install something else before to use libcurl.dll on Seven ?

Posted: 17 Apr 2014 18:28
by Jan de Lint
Hi Tonton,
I work with 64 bits windows all the time.
You mean windows 7?
Before I switched to 8 it worked there as well.
Haven't updated the curl dll for quite some time though.
I use libcurl/7.20.1 OpenSSL/0.9.8n zlib/1.2.5
This reminds me that perhaps OpenSSL needs to be updated? Heartbleed???
I don't use SSL myself. So perhaps you should accuire a new set of dlls from curl?
Which levels do you use?

]an

Posted: 18 Apr 2014 7:11
by Tonton Luc
Hi Jan,

Yes I mean Windows 7.

Can you explain me what I need to install in my machine please ?

Posted: 18 Apr 2014 8:21
by Jan de Lint
You can find the downloads here
This will lead you to for instance: zip
Replace the dlls in your installation with the ones you can find in the dll directory of the zip. The dlls should go in the same directory as your applications exe.
Version 7.36 is a level far beyond the one I use.
If this doesn't work install the command line version (the msi package) and try that first.
]an

Posted: 18 Apr 2014 11:58
by Tonton Luc
Hi Jan,


I put the dLL from your zip in the same folder of my application and I've always the same error :

Code: Select all

clauses     curl_global_init() :-         global_initialized = false,         _ = curl_api::curl_global_init(3),  %!!! HERE !!! VPcURL.pro(97)         global_initialized := true, !.     curl_global_init().
What's wrong ?

Posted: 18 Apr 2014 12:47
by Jan de Lint
This is typically a warning that a dll is missing.

I think you need to copy all dlls:
libcurl.dll
libssl32.dll
libeay32.dll
zlib1.dll
msvcr120.dll
ssleay32.dll

Regards,
]an

Posted: 18 Apr 2014 13:15
by Tonton Luc
Hi,

I've copying all dll in the same folder of my application + in C:\Windows\System32 + in C:\Windows\SysWoW64 but I've always the same error.
:shock:

And when I try to make a regsvr32, I've a message : "entry point DLLRegisterServer is not found".

Posted: 18 Apr 2014 18:39
by Jan de Lint
I think they should only be in your apps exe folder.
That is how it works in my case.

]an

Posted: 18 Apr 2014 18:59
by Jan de Lint
Here the dlls I use currently in a zip of 32 bit dlls
]an

Posted: 20 Apr 2014 18:55
by Thomas Linder Puls
If you run a 32bit program the DLL's must also be 32bit and if you run a 64bit program the DLL's must also be 64bit. Unfortunately, there is no simple way to determine whether a program or DLL is 32bit or 64bit.

Posted: 21 Apr 2014 7:36
by Jan de Lint
Vpicurl stems from the pre 64 bit area. Haven't explored the 64 bit possibilities at all.
I run 32 bit vpi and 32 bit curl dlls in 64 bit windows.
If you would like to make 64 bit vpicurl you are on your own - it should be possible though.
The curl dll download page clearly marks the dlls 32 bit or 64 bit.
]an

Posted: 22 Apr 2014 13:03
by Tonton Luc
Hi,

Sorry but I don't understand what I do.
You said :
I run 32 bit vpi and 32 bit curl dlls in 64 bit windows
: why my VP7.2 application + 32 bits cURL dLLs doesn't works on my Windows Seven 64 bits machine ?

I've tried to recompil my VP7.2 application on my 64 bits machine + cURL dLLs 64 bits on the same folder => and I've always the same error message (like in my previous post).

Does a VP 7.2 project installed in a 64 bits machine generate a 64 bits applications inevitably ? ...or do I need to switch something in my VDE ?

Posted: 22 Apr 2014 13:11
by Jan de Lint
Hi Tonton
There is no need to change anything according to my experience. No 64 bit compilation no 64 bit dll's, no nothing.
My guess is that you have a dll missing.
However I'm on 7.4 perhaps that could be a difference????
As I recall I had to change things from 7.2 through 7.4 in the code!
Regards,
]an

Posted: 22 Apr 2014 13:38
by Tonton Luc
Hi Jan,

Can you send me one of your little 32 bits application + curl dLLs 32 bits to test in my 64 bits machine please ? ...because I really don't understand whats wrong.

Posted: 23 Apr 2014 6:44
by Jan de Lint
Could you send me your source and I will make it work.
In VIP 7.4 that is.
]an