On Tue, 2 Jan 2001, James Abbatiello wrote:

> Francois Gouget wrote:
>  >
> 
> >    Here's the testcase I wrote:
> > 
> > #define GetObject You cannot use GetObject in this context
> > 
> > #define ICOM_FN(xfn)    fn ## xfn
> > 
> > #define DECLARE1(xfn)    void ICOM_FN(xfn) (void);
> > #define DECLARE2(xfn)    void ICOM_FN(##xfn) (void);
> > 
> > 
> > ICOM_FN(GetObject)
> > DECLARE1(GetObject)
> > DECLARE2(GetObject)
> > 
> 
> 
> How about
> 
> #define DECLARE3(xfn,y)  void ICOM_FN(xfn##y) (void);
> 
> DECLARE3(GetObject,)

   Yes, this would work. Actually that was Alexandre Oliva's first
suggestion. The problem is that you then have to modify the 1500+ COM
method declarations :-(
   IMO it's not worth it.


--
Francois Gouget         [EMAIL PROTECTED]        http://fgouget.free.fr/
    I haven't lost my mind, it's backed up on tape around here somewhere...



Reply via email to