Re: Porting from VC6 to VS2005
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 28 Sep 2008 12:19:41 -0400
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:Joseph M. Newcomer [MVP]
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.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Porting from VC6 to VS2005
- From: AVee
- Re: Porting from VC6 to VS2005
- References:
- Porting from VC6 to VS2005
- From: AVee
- Re: Porting from VC6 to VS2005
- From: Ian Semmel
- Re: Porting from VC6 to VS2005
- From: David Wilkinson
- Re: Porting from VC6 to VS2005
- From: AVee
- Re: Porting from VC6 to VS2005
- From: Giovanni Dicanio
- Re: Porting from VC6 to VS2005
- From: Joseph M . Newcomer
- Re: Porting from VC6 to VS2005
- From: David Wilkinson
- Porting from VC6 to VS2005
- Prev by Date: Re: [CodeGallery] MFC MD5 Calculator
- Next by Date: virtual keyboard
- Previous by thread: Re: Porting from VC6 to VS2005
- Next by thread: Re: Porting from VC6 to VS2005
- Index(es):
Relevant Pages
|