#include using namespace std; #include namespace KException { ZGrpException:: ZGrpException() { err_code = -1; err_string = ""; } ZGrpException:: ZGrpException(int code, string s) { err_code = code; err_string = s; } ZGrpException:: ZGrpException(KException::ZGrpException & e ) { err_code = e.err_code; err_string = e.err_string; } ZGrpException:: ~ZGrpException() { } void ZGrpException:: ConstructErrorMsg() { //create a string containing the complete error //information stringstream sstream_error_info; sstream_error_info << " " << err_code << ":" << err_string << endl; err_msg = sstream_error_info.str(); } void ZGrpException:: DisplayErrorMsg() { int msg_len = err_msg.length(); int i; TCHAR * temp = new TCHAR[msg_len]; for(i=0; i