19int wmain(
int argc,
wchar_t** argv)
21int main(
int argc,
char** argv)
26 std::cerr <<
"minidump_upload path_to_ini_file" << std::endl;
31 const int nBytes = WideCharToMultiByte(CP_UTF8, 0, argv[1], -1,
nullptr, 0,
nullptr,
nullptr);
32 auto buf = std::make_unique<char[]>(nBytes);
33 if (WideCharToMultiByte(CP_UTF8, 0, argv[1], -1, buf.get(), nBytes,
nullptr,
nullptr) == 0)
35 std::string iniPath(buf.get());
37 std::string iniPath(argv[1]);
43 std::cout <<
"Response: " << response << std::endl;
int main(int argc, char **argv)
bool readConfig(const std::string &iniPath, std::string *response)
Read+Send, Test and send info from the Dump.ini .
int wmain(int argc, wchar_t *argv[])