curl-library
libcURL application failed to initialize properly
Date: Wed, 27 Apr 2011 02:25:12 +0500
Hi Everyone
I am new to libcURL.
I want to use libcURL to communicate with a HTTPS website.
So i downloaded the code from the following link
http://curl.haxx.se/download/libcurl-7.19.3-win32-ssl-msvc.zip (Is
this all i want to communicate to HTTPS website?)
and tried to exceute the following code sample using visual studio 2005 team
suite on windows XP
#include <stdio.h>
#include <curl.h>
int main(void)
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "www.linux.com");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
I correctly added all the headers(included in the above downloaded libcurl
zip file) files in the project and configured the linker to link with
curllib.lib and also added curllib.dll in C:\WINDOWS\system32.
Note: curllib.lib and curllib.dll are include in the above zip file
After all that build is succeeded but when i run the application i get the
following error
The application failed to initialize properly (0xc0150002).
Should i have to compile the curllib.lib and curllib.dll on my system? If
yes, can someone kindly refer me to correct place/guide to compile the
libcurl with SSL support on windows XP
Can anyone help me?
Regards,
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-04-26