home *** CD-ROM | disk | FTP | other *** search
- // preatldr.cpp : source file that includes just the standard includes
- // ATLDraw.pch will be the pre-compiled header
- // preatldr.obj will contain the pre-compiled type information
-
- #include "preatldr.h"
-
- LONG g_cObjCnt;
-
- void dump_com_error(_com_error &e)
- {
- _tprintf(_T("Oops - hit an error!\n"));
- _tprintf(_T("\a\tCode = %08lx\n"), e.Error());
- _tprintf(_T("\a\tCode meaning = %s\n"), e.ErrorMessage());
- _bstr_t bstrSource(e.Source());
- _bstr_t bstrDescription(e.Description());
- _tprintf(_T("\a\tSource = %s\n"), (LPCTSTR) bstrSource);
- _tprintf(_T("\a\tDescription = %s\n"), (LPCTSTR) bstrDescription);
- }
-