I downloaded http://curl.haxx.se/download.html win32 - generic and it compiles fine but it gives a memory violation when I use it.
It gives the error when I run it. I am going to try the version built for MSVC++ but anyone know why it gives a violation?Code:#include "stdafx.h" #include <string> #include "curl/curl.h" #pragma comment(lib, "lib/libcurl.a") #pragma comment(lib, "lib/libcurldll.a") using namespace std; BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } void Func() { CURL * c = curl_easy_init(); }
The one built for MSVC++ has a problem with zlib.
For cURL being so easy it is a pain to get working...
Well I got the MSVC++ one working but I don't want to have to include a 500kb dll with my project...


Reply With Quote