4 //#warning "Using hideously broken fake comdef.h"
13 // FIXME: completely untested and random
15 class WvComSmart
: public WvComSmartBase
18 WvComSmart(IUnknown
*ptr
= 0, bool addref
= false)
23 WvComSmart(const WvComSmartBase
&b
)
28 bool operator== (const void *b
) const
33 bool operator!= (const void *b
) const
54 #define _COM_SMARTPTR_TYPEDEF(x, y) typedef WvComSmart<x> x##Ptr;
58 _COM_SMARTPTR_TYPEDEF(IUnknown
, xblah
);
59 _COM_SMARTPTR_TYPEDEF(IDispatch
, xblah
);
64 const char *ErrorMessage();
67 #define __uuidof(x) (xblah)