well, for example, i could get the exit code from mysql.exe (executed with shellExecuteEx from my visual c++ application) with
the problem is i cant find the exit codes for that program, so is there any other way to know if the execution of mysql.exe and its parameter was successfull?Code:BOOL GetExitCodeProcess( HANDLE hProcess, // handle to the process LPDWORD lpExitCode // address to receive termination status );
here is an error example from mysqldump, with this parameter (purposefully wrong) it sends error 1044, is there a list of this errors somewhere?Code:C:\backup>mysqldump sdlfkj -- MySQL dump 8.22 -- -- Host: localhost Database: sdlfkj --------------------------------------------------------- -- Server version 3.23.51-max-nt mysqldump: Got error: 1044: Access denied for user: '@localhost' to database 'sdlfkj' when selecting the database
how can i know if something went wrong from my visual c++ application?




Reply With Quote