Re: Porting from VC6 to VS2005
- From: David Wilkinson <no-reply@xxxxxxxxxxxx>
- Date: Sun, 28 Sep 2008 07:26:25 -0400
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.
--
David Wilkinson
Visual C++ MVP
.
- Follow-Ups:
- Re: Porting from VC6 to VS2005
- From: Doug Harrison [MVP]
- Re: Porting from VC6 to VS2005
- From: Joseph M . Newcomer
- 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
- Porting from VC6 to VS2005
- Prev by Date: Loading Language Resource DLLs
- Next by Date: Re: [CodeGallery] MFC MD5 Calculator
- Previous by thread: Re: Porting from VC6 to VS2005
- Next by thread: Re: Porting from VC6 to VS2005
- Index(es):
Relevant Pages
|
Loading