poco-libraries

Exception thrown at 0x00007FF93E507A7A (ntdll.dll) .Access violation reading location 0xFFFFFFFFFFFFFFFF

大憨熊 提交于 2021-02-10 05:14:16
问题 I'm using POCO lib to working network. i use JSON data of POCO/JSON . my code: User user(context.marshal_as<std::string>(tbUserName->Text), context.marshal_as<std::string>(tbFullName->Text), context.marshal_as<std::string>(tbDisplayName->Text), context.marshal_as<std::string>(tbEmail->Text), context.marshal_as<std::string>(tbPhoneNumber->Text), context.marshal_as<std::string>(tbNamSinh->Text), context.marshal_as<std::string>(tbPassword->Text), context.marshal_as<std::string>(tbConfirm->Text)

Exception thrown at 0x00007FF93E507A7A (ntdll.dll) .Access violation reading location 0xFFFFFFFFFFFFFFFF

做~自己de王妃 提交于 2021-02-10 05:13:40
问题 I'm using POCO lib to working network. i use JSON data of POCO/JSON . my code: User user(context.marshal_as<std::string>(tbUserName->Text), context.marshal_as<std::string>(tbFullName->Text), context.marshal_as<std::string>(tbDisplayName->Text), context.marshal_as<std::string>(tbEmail->Text), context.marshal_as<std::string>(tbPhoneNumber->Text), context.marshal_as<std::string>(tbNamSinh->Text), context.marshal_as<std::string>(tbPassword->Text), context.marshal_as<std::string>(tbConfirm->Text)

Exception thrown at 0x00007FF93E507A7A (ntdll.dll) .Access violation reading location 0xFFFFFFFFFFFFFFFF

天大地大妈咪最大 提交于 2021-02-10 05:13:14
问题 I'm using POCO lib to working network. i use JSON data of POCO/JSON . my code: User user(context.marshal_as<std::string>(tbUserName->Text), context.marshal_as<std::string>(tbFullName->Text), context.marshal_as<std::string>(tbDisplayName->Text), context.marshal_as<std::string>(tbEmail->Text), context.marshal_as<std::string>(tbPhoneNumber->Text), context.marshal_as<std::string>(tbNamSinh->Text), context.marshal_as<std::string>(tbPassword->Text), context.marshal_as<std::string>(tbConfirm->Text)

How to subtract 30 days from a current Date in c++ using poco library?

烂漫一生 提交于 2021-01-29 05:18:21
问题 How to subtract 30 days from a current Date in c++ using poco library ? 回答1: First approach is to substract to the date a new DateTime constructed like this: Poco::DateTime(0, 0, 30); But it is not allowed at runtime because month must be greater than 1. The solution is to use a Timespan: Poco::DateTime date = Poco::DateTime(); std::cout << Poco::DateTimeFormatter::format(date, Poco::DateTimeFormat::ASCTIME_FORMAT) << std::endl; date = Poco::DateTime(date.timestamp() - Poco::Timespan(30 * 24

Directory change error with mingw32-make

谁都会走 提交于 2021-01-28 03:26:18
问题 I'm building POCO library 1.6.0 under MinGW32, environment: Windows 7 Ultimate 32-bit, shell: MSYS. Successfully executed ./configure . $ ./configure Configured for MinGW Contents of config.make: POCO_CONFIG = MinGW POCO_BASE = /c/dev/poco POCO_BUILD = /c/dev/poco POCO_PREFIX = /usr/local POCO_FLAGS = OMIT = export POCO_CONFIG export POCO_BASE export POCO_BUILD export POCO_PREFIX export POCO_FLAGS After launching mingw32-make I'm getting: $ mingw32-make --debug -w GNU Make 3.82 Built for i386

C++ Http Request with POCO

六月ゝ 毕业季﹏ 提交于 2020-05-24 21:04:41
问题 I'm wondering how I can do a request to a URL (e.g. download a picture and save it) with POCO in C++? I got this little code so far #include <iostream> #include <string> #include "multiplication.h" #include <vector> #include <HTTPRequest.h> using std::cout; using std::cin; using std::getline; using namespace Poco; using namespace Net; int main() { HTTPRequest *test = new HTTPRequest("HTTP_GET", "http://www.example.com", "HTTP/1.1"); } 回答1: Normally POCO has a great advantage to be very simple

POCO libraries: MinGW (MSYS2) compilation has generated libPocoDataODBC.dll with missing entry points (Poco::Data::ODBC::Connector::registerConnector)

依然范特西╮ 提交于 2020-01-25 09:28:14
问题 I have succeeded compiling POCO libraries with MinGW64 (MSYS2). To build it, I installed Windows SDK and added to the PATH environment the path to mc.exe , so I executed: pacman -S mingw-w64-x86_64-cmake # Get POCO git clone -b master https://github.com/pocoproject/poco.git # set Windows SDK to the PATH export PATH="/c/Program Files (x86)/Windows Kits/10/bin/10.0.18362.0/x64:$PATH" # Prepare compilation cd poco /mingw64/bin/cmake -G "MSYS Makefiles" .. # Compile make The compilation succeeded

Poco::Zip compress/decompress

我与影子孤独终老i 提交于 2020-01-25 08:00:13
问题 After successfully compress/decompress using Poco::Zip, I found that I cannot decompress the .zip file which I zip it with my Compress method and vice-versa. But I can decompress my zip file with other tools like 7z or WinRAR and of course, if I compress the zip file using WinRAR or 7z, I can decompress the zip file using my decompress method. I don't know what's wrong here? Here is my compress method: void ZipFile(string source, string target){ Poco::File aFile(source); if (aFile.exists()) {

how to keep websocket connect until either-side close?

时光总嘲笑我的痴心妄想 提交于 2020-01-22 23:57:47
问题 I'd like to build chat app on websocket, and choose Poco C++ lib as webserver (1.4.6p1). There are multiple user at the same time, poco websocket will be blocked at read frame but automatically released after 60 seconds if nothing is received from browser. I want to keep socket connected in order to manager so many active (or idle) users, but how to get there? T.H.X 回答1: I "fixed" the problem with this simple and somewhat dirty line of code: ws.setReceiveTimeout(Poco::Timespan(10, 0, 0, 0, 0)

How to send email with embedded pictures

怎甘沉沦 提交于 2020-01-17 06:55:31
问题 I have a requirement to send emails with embedded photos. I'm using a html template email with a img tag inside it like this <img src = "cid:image1"> I'm loading the template into a string then adding it to the mail, then adding the image file part using namespace Poco::Net; // create and initiliase a multipart html email auto message = std::make_shared<Poco::Net::MailMessage>(); Poco::Net::MediaType mediaType("multipart", "related"); mediaType.setParameter("type", "text/html"); message-