Where? Does the access violation happen because you called curl_global_init, or within the function itself? curl_global_init doesn't really do a whole lot, so my guess is that the function isn't loading correctly from the dll.
Also, what are you doing with libcurl, most things can be done with the curl_easy... methods, which don't require you call curl_global_init. Unless you're doing in-depth SSL or something, you probably don't need it.
I'll be I know exactly what is wrong. curl.dll almost certainly was compiled using MinGW, and MinGW mangles names differently than VC++, so VC++ programs can't find the functions that you are looking for. A library compiled for MinGW can not be used in VC++, and vise versa.
FYI, Dev-C++ is deprecated, it has been merged with Code::Blocks, so I recommend using that instead.
-and extra thanks for telling me about Code::Blocks
I knew Dev-cpp was discontinued and still had some issues but didn't know there was a new one
I'll look into it
yes, I'm well aware of that
I've used the same 'compiler' on other systems before
Most people use comfortable terms like compiler rather loosely however
such as calling visual studio a compiler when in fact there are only a few files in it's bin directory which are actually related to compilation
perhaps if I had called it an IDE you'd have felt more comfortable? XD
I'm in the process of trying to put libcurl in a new DLL for VS but don't expect to have much luck
If anyone has any tips on that, they'd also be appreciated
I'm in the process of trying to put libcurl in a new DLL for VS but don't expect to have much luck
If anyone has any tips on that, they'd also be appreciated
Bookmarks