I want in my c++ program to get information from a server as a check. If the server returns 0 then the function exitapl() witch close the program is called and if the server returns 1 then the code will continue running. What is the easiest way to do that? I am aware that this can be done with a MySql server but for me is too complicated to configure the c++ connector. Thanks.
if ( GetProgramStatusFromServer() == 0) exitapl();