Juan Lang <[EMAIL PROTECTED]> writes: > +#define DECL_IFACE(ifc) const I##ifc##Vtbl *lp##ifc##Vtbl; > + > +#define IFACE2IMPL(cls,ifc,iface) > ((cls*)((BYTE*)(iface)-offsetof(cls,lp##ifc##Vtbl))) > +#define IMPL2IFACE(ifc,x) ((I##ifc*)&(x)->lp##ifc##Vtbl)
Please avoid that sort of macros, it makes grepping for things a lot harder. Just spell things out explicitly, and for IFACE2IMPL define a couple of inline functions instead. -- Alexandre Julliard [EMAIL PROTECTED]