I’m trying to write a simple curl program to retrieve the web page in VC++ 8.0.
#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, "curl.haxx.se");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
}
return 0;
}
I added the include and library paths to cURL include and lib directory. It complies but when I try to enter debug mode, An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during process load and code exits with -1073741515 (0xc0000135).
if you run it outside of debug mode, does it work as expected? or does the same error occur?
if it doesn’t work outside of debug mode, your application was not able to locate the dll.
another question, are you tring to compile libcurl from sources along with your project, or are you using it as an external library?
if you are using the sources, you might need to compile the whole solution so that libcurl is compiled as well.
if you are using the external library, try putting the dll in the working directory of your application (it wasn’t able to locate it).