>AfxMessageBox((CString)er.error); It looks like you are trying to ask the compiler to cast er.error as a CString. The compiler complains because the exception you are catching using BadQuery (i.e., er.error) is probably implemented with STL. Usually you would see the error dumped out as follows: cerr << "Error: " << er.error << endl; // print error But you want to pop a message box however if I remember right AfxMessageBox takes as a parameter type LPCTSTR. So construct a CString and see if that will get you there. Regards.
--------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php