DispatchObject.h

00001 
00002 #ifndef DISPATCH_OBJECT_H_bc407828_5e39_497d_b7a5_d84d9b8b8c8b
00003 #define DISPATCH_OBJECT_H_bc407828_5e39_497d_b7a5_d84d9b8b8c8b
00004 
00005 #include <unknwn.h>
00006 
00007 class DispatchObject
00008 :
00009   public IDispatch
00010 {
00011   public:
00012 
00013   // IUnknown
00014   HRESULT __stdcall QueryInterface( const IID & iid, void ** ppv );
00015   ULONG __stdcall AddRef();
00016   ULONG __stdcall Release();
00017 
00018   // IDispatch
00019   LONG __stdcall GetTypeInfoCount( UINT * o_count );
00020   LONG __stdcall GetTypeInfo( UINT, LCID, ITypeInfo ** );
00021   HRESULT __stdcall GetIDsOfNames( const IID & iid, BSTR * arrayNames, UINT countNames, LCID, DISPID * arrayDispIDs );
00022   HRESULT __stdcall Invoke( DISPID dispidMember, const IID & iid, LCID lcid, WORD wFlags, DISPPARAMS * pDispParams, VARIANT * pvr, EXCEPINFO * pExcepInfo, UINT * pArgErr );
00023 
00024   // ctor/dtor
00025    DispatchObject();
00026   virtual ~DispatchObject();
00027 
00028   static LONG Count();
00029 
00030   // internals
00031   LONG m_ref;
00032   static LONG m_dispatchObjects;
00033 
00034 };
00035 
00036 
00037 
00038 
00039 #endif
00040 




~ ~ ~ ~ ~ ~
Don't create Texas sized problems...
Comment your Code!
~ ~ ~ ~ ~ ~
Author: Mark Petryk
Lorimark Solutions, LLC