I need to work with some old C++ code that was developed in Visual C++ 6.0. Right now it’s giving me compile errors galore. (For instance, “cannot open include file: ‘iostream.h'”… because now it should say #include <iostream> rather than #include <iostream.h>).
How can I work with this code without having to change it all over the place?
Unfortunately, there isn’t a targetting feature in VS2008 that lets you do this.
You’ll just need to clean up your code. Luckily, VS2008 is far more standards-compliant than older versions of Visual C++ (in particular, VC 6). Getting the code clean should help in the future (you’re less likely to have to worry about this later), as well as help if you ever decide to port to other platforms.