Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
vik96 каза:Здравейте
Отдавна не съм писал тук, но след повече от 1 ден търсене ми се наложи да потърся помощ.
Трябва ми някаква библиотека (по възможност с обяснение как се ползва) с която мога да права HTTP request-ове с C++.
PP: Ползвам DevC++.
Но как да инсталирам самата библиотека в Devcppvinsbg каза:vik96 каза:Здравейте
Отдавна не съм писал тук, но след повече от 1 ден търсене ми се наложи да потърся помощ.
Трябва ми някаква библиотека (по възможност с обяснение как се ползва) с която мога да права HTTP request-ове с C++.
PP: Ползвам DevC++.
Това може би ще ти свърши работа:
Този отговор
Това
vik96 каза:Но как да инсталирам самата библиотека в Devcppvinsbg каза:vik96 каза:Здравейте
Отдавна не съм писал тук, но след повече от 1 ден търсене ми се наложи да потърся помощ.
Трябва ми някаква библиотека (по възможност с обяснение как се ползва) с която мога да права HTTP request-ове с C++.
PP: Ползвам DevC++.
Това може би ще ти свърши работа:
Този отговор
Това
[/quote]You can usually download MSVC development libraries and get them to work with Dev-C++. For example, you could download this package: cURL: win32-devel-msvc from Mirrors
(libcurl development package for MSVC, without SSL support).
Then link a project with the .lib file in that archive, and add its include/ directory to your include path. That should be all you need to do to get it to work. I'm sure libwww is similar, if you wanted to do that.
Adding a .lib file to your project (and you need a project, a single source file won't work): it's probably easiest to copy the .lib file to C:\Dev-C++\lib, or the equivalent, depending on where you installed Dev-C++. Then go to project options and add the new .lib to the list of libraries to be linked with.
Adding the include/ directory to your inclusion path: it's probably easiest to just copy the include/curl directory from the archive to C:\Dev-C++\include, so that you have files like C:\Dev-C++\include\curl\curl.h. Then you can use
inside your code. If you prefer not to mess with the standard include directories, you can instead add the include/curl directory to your project in the project settings dialog.Код:#include <curl/curl.h>