I came across some code recently and would like to compile it. There's a .cpp file, along with a .dsp and .dsw file and they all have the same name. I use Visual C++ 2005 Express Edition and loaded them all into the same project. A number of errors were generated. I've also tried to compile the code with Dev-C++ but it also generates a load of errors.

Can I compile this with the software that I have or do I need a different compiler? I looked into the .dsw and .dsp files and I saw "Microsoft Developer Studio Project" - must I use this for compilation?

09-29-2006

Ken Fitlike

Compiler configuration question; Moved to Tech.

It should be possible to do what you've done but in practice it's not that straightforward. It's probably best just to create a new project with msvc-express, add the source and configure the project settings to match the critical ones for the sample project you're trying to build.