comutil.h File Reference

#include <shellapi.h>
#include <shlobj.h>

Include dependency graph for comutil.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  COMExceptionBase
 COM ExceptionBase class as replacement for _com_error. More...
struct  COMException
 Exception with context information. More...
struct  ComInit
 COM Initialisation. More...
struct  OleInit
 OLE initialisation for drag drop support. More...
struct  SIfacePtr< T >
 wrapper class for COM interface pointers More...

Defines

#define THROW_EXCEPTION(hr)   throw COMException(hr, __FILE__, __LINE__)
#define CHECKERROR(hr)   ((void)(FAILED(hr)? THROW_EXCEPTION(hr): 0))

Functions

void CheckError (HRESULT hr)
void HandleException (COMException &e, HWND hwnd)
 Exception Handler for COM exceptions.


Define Documentation

#define CHECKERROR ( hr   )     ((void)(FAILED(hr)? THROW_EXCEPTION(hr): 0))

Definition at line 148 of file comutil.h.

Referenced by ComInit::ComInit(), OleInit::OleInit(), and SIfacePtr< IOleInPlaceObject >::SIfacePtr().

#define THROW_EXCEPTION ( hr   )     throw COMException(hr, __FILE__, __LINE__)

Definition at line 147 of file comutil.h.


Function Documentation

void CheckError ( HRESULT  hr  )  [inline]

Definition at line 153 of file comutil.h.

Referenced by ConnectionPoint< T >::ConnectionPoint(), and EventConnection::EventConnection().

00154 {
00155     if (FAILED(hr))
00156         throw COMException(hr);
00157 }

Here is the caller graph for this function:

void HandleException ( COMException e,
HWND  hwnd 
)

Exception Handler for COM exceptions.


IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage