Write an CPP executable that sends request every X milliseconds and save it to the JSON…
- User
Write an CPP executable that sends request every X milliseconds and save it to the JSON file with specific path, also add an external config for it. HTTP GET request that get content from the page. After the application is launched it must be in the background, it must launch another executable - launcher that launches other application. Now, as soon as the other one starts and turns off, my application should also turn off. + Add windows with an error if this application does not exist.
- Assistant
- User
Write the whole code
- Assistant
- User
Severity Code Description Project File Line Suppression State Details Error C3861 'loadConfig': identifier not found CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 89 Error (active) E0020 identifier "json" is undefined CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 57 Error (active) E0020 identifier "json" is undefined CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 59 Error (active) E0167 argument of type "STARTUPINFO *" is incompatible with parameter of type "LPSTARTUPINFOA" CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 73 Error C4430 missing type specifier - int assumed. Note: C++ does not support default-int CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 57 Error C2146 syntax error: missing ';' before identifier 'loadConfig' CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 57 Error C2143 syntax error: missing ';' before '{' CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 57 Error C2447 '{': missing function header (old-style formal list?) CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 57 Error C2664 'BOOL CreateProcessA(LPCSTR,LPSTR,LPSECURITY_ATTRIBUTES,LPSECURITY_ATTRIBUTES,BOOL,DWORD,LPVOID,LPCSTR,LPSTARTUPINFOA,LPPROCESS_INFORMATION)': cannot convert argument 9 from 'STARTUPINFO *' to 'LPSTARTUPINFOA' CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\CoopLoader.cpp 73
- Assistant
- User
Severity Code Description Project File Line Suppression State Details Error C2079 'file' uses undefined class 'std::basic_ofstream<char,std::char_traits>' CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\HTTPFetcher.cpp 27 Error C2440 'initializing': cannot convert from 'const std::string' to 'int' CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\HTTPFetcher.cpp 27 Error C2677 binary '<<': no global operator found which takes type 'std::basic_string<char,std::char_traits,std::allocator>' (or there is no acceptable conversion) CoopLoader C:\Users\artem\Desktop\singleplayer_to_multiplayer_v_0.2\CoopLoader\CoopLoader\CoopLoader\HTTPFetcher.cpp 28
Fix above code
- Assistant