home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
com
/
dcom
/
atldraw
/
preatldr.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-02
|
653b
|
19 lines
// 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);
}