What "Code Generation/Runtime Library" setting was curllib.dll itself built 
with?  "Multithreaded DLL" means you need to include msvcr100.dll in your 
directory.  If curllib.dll itself was built with some other version of Visual 
Studio, you'd need that version of msvcr*.dll instead, possibly including the 
.manifest file if it was Visual Studio 2005 or 2008.

Microsoft's "Dependency Walker" ("depends.exe") program used on curllib.dll can 
also help diagnose what is going on, as can seeing what debug messages are 
output when LoadLibrary[Ex] is attempted.

---- nilesh jethawa <[email protected]> wrote: 
> HI,
> 
> I am using CURL library to getting the content from HTML Link in VS 2010.
> 
> I follow the below steps:
> 
> 1) I download the latest Libcurl library for VS 2010
> 
> 2) Configuration properties->VC++ directories->Include Directories:
>               "C:\cURL\include\curl"
> 
> 3)Configuration properties->VC++ directories->Library Directories:
>                 "C:\cURL\lib\Release"
> 
> 4) Configuration properties->Linker->Input->Additional Dependencies:
> 
>   curllib.lib";kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;
>   advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;
>   odbccp32.lib
> 
> 5) I copied into the my project directory: curllib.dll,
>     libeay32.dll, openldap.dll, ssleay32.dll, libsasl.dll
> 
> 6) Configuration properties->General->Use of MFC:
>                      "Use MFC in a Static Library"
> - Configuration properties->C/C++->Preprocessor->Preprocessor Definitions:
>      "WIN32; NDEBUG; _WINDOWS; _AFXDLL; ETORO_EXPORTS"
> 
> - Configuration properties->C/C++->Code Generation->Runtime Library:
> "Multi-threaded DLL (/MD)
> 
> 
> After setting above information, I build the DLL.
> When I call this DLL from other application, it throws error on LoadLibrary
> function i.e. Unable to Load Library.
> 
> Please Help me to get out of this problem.
> Its work fine with VC++ 6.0, but not in VS 2010.
> 
> Thanks in advance
> 
> Regards,
> Nilesh

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to