Call of inbuild procedure overrides own import
Posted: Thu Jul 24, 2025 9:37 am
Hi,
I needed the external libcurl.dll, because I want to use the ldap protocol.
So I set the flag before including libcurl.pbi
In my version I use a .lib file and ImportC "libcurl_External.lib"
If I use now a procedure out of the Http lib, the internal libcurl is used.
For example if I use URLEncoder() in my code and showing the version of libcurl, it results in 7.68
If I remove URLEncoder() I get 8.15 as expected.
Why ???
And how can I avoid this?
The here published version of libcurl.pbi is not affected, because the 'import' of the external dll is done via OpenLibrary().
I needed the external libcurl.dll, because I want to use the ldap protocol.
So I set the flag before including libcurl.pbi
Code: Select all
#LibCurl_ExternalDLL = #True
XIncludeFile "../pbi/libcurl.pbi"
If I use now a procedure out of the Http lib, the internal libcurl is used.
For example if I use URLEncoder() in my code and showing the version of libcurl, it results in 7.68
If I remove URLEncoder() I get 8.15 as expected.
Why ???
And how can I avoid this?
The here published version of libcurl.pbi is not affected, because the 'import' of the external dll is done via OpenLibrary().