Re: Porting from VC6 to VS2005



I should stop typing when I am tired. That should have been 'for'. ARGH!
joe

On Sun, 28 Sep 2008 07:26:25 -0400, David Wilkinson <no-reply@xxxxxxxxxxxx> wrote:

Joseph M. Newcomer wrote:
I got done in by the complement of that...

if(int i = ...)

if(i = ...)

if(i = ...)

Joe:

I don't see this construct with "if" as anything I would ever do, but the
analogous thing with "for" is of course very common. IMHO, absolutely the best
way to deal with this is the

#if _MSC_VER < 1300
#define for if(false){} else for
#endif

trick. Then you never need to write obsolete code again, and your VC6 projects
will update correctly.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: OT: Palin a John Birch-er?
    ... and not something else or a photoshopped fake. ... Are you just typing to be ... I don't CARE what she was reading. ... Joe Long aka ChipRider ...
    (rec.gambling.poker)
  • Re: E-mail addresses from Contacts do not appear as I start typing an.
    ... > over from Outlook Express. ... > start typing in an e-mail address that is in my contacts folder, ... The autocompletion cache ... If you type in "Joe" and press CTRL-K and you have the Autoresolution option ...
    (microsoft.public.outlook.general)
  • Re: OT A Failure to Lead
    ... Headcase, Mack, Tom Slick, and of course, can't forget Joe ... Besser. ... Are you, the admitted misogynist, kicking a woman while typing that, ...
    (alt.autos.toyota)
  • Re: Automatic name checking by first name
    ... Usually three letters are all that's needed...so for Joe ... Bloggs, typing in joe will eventually make it 'learn'... ...
    (microsoft.public.outlook)
  • Re: Bin Want Play
    ... clever enough to just try typing in an obvious URL. ... Argh. ... Anyway, thanks both of you, I'll take a look at lunchtime. ...
    (uk.games.video.misc)