Allright.
On Sat, 26 May 2007 12:36:13 GMT, "Adam J" <adam@{-nospam-}.se> wrote:
I'm sorry about the attachments.
Hi, have you read my other post?
// This macro replaces CHECKHR.
#define EVALHR(hr) > >{ > > if(S_OK != hr) > > { > > throw FXALoggableException(300, _T("XML error"),
_T("")/*CString((__WFILE__))*/, _T("")); > > } > >}
MFC exceptions are not thrown in this way.
This way of throw exception (and the corresponding catch) is for
standard C++ exceptions; have you tried deriving your exception base
class from std::exception and not CObject?
(Or, if you want MFC exception mechanism, derive from CObject and
throw/catch using *pointers* (CException *)).
//
// Assignment operator.
//
const FXAException& FXAException::operator=(const FXAException& that)
As I wrote in my other post, this is not standard signature for C++
operator=; you should remove the first 'const' of the statement, just:
FXAException & FXA....::operator=(const FXA... & that);
MrAsm
----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups