- wsprintf(szBuf, L"%s: Error %d: ", szMember, pexcep->wCode);
- if (pexcep->bstrDescription != NULL)
- lstrcat(szBuf, pexcep->bstrDescription);
- else
- lstrcat(szBuf, L"<<No Description>>");
+ {
+ message = wxT("Error Code (");
+ message << pexcep->wCode ;// unsigned short
+ message += wxT(")");
+ if (pexcep->bstrDescription != NULL)
+ message += pexcep->bstrDescription;
+ else
+ message += wxT("<<No Description>>");
+ }