$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Alan Bellingham (alan_at_[hidden])
Date: 2002-07-19 11:09:33
"Anthony Williams" <anthony_w.geo_at_[hidden]>:
>These are all valid workarounds. I think I prefer option 1, but I wouldn't
>like to maintain the de-macro-fying header, given that MS changes/extends
>the API every few months...
Well, there's always diff ...
>Also, as Gennaro pointed out in another post, the MFC and ATL classes have
>members that _pretend_ to be called MessageBox, GetWindowText... If you make
>these real names, and not macros, then you will probably meet
>problems.somewhere.
Erk!
In the name of all that's holy, that's _vile_. Actually, I suspect that
ATL may be OK (it does tend to be template based code, not relying on
pre-built code so much), but I think you're right about MFC.
What a horrible concept.
Still, given that all headers that rely on this behaviour should be
included before the undefining header, it looks doable.