curl-library
How to use CURL in VS 2010 DLL application
Date: Tue, 3 Dec 2013 16:59:55 +0530
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
Received on 2013-12-03