Support for Visual Studio 2008 Express MFC

As many people know, the express versions of Visual Studio 2008 do not include support for MFC and several other packages needed to compile a large number of window programs.

So here is my problem:

I have a full version of Visual Studio 2005. I use this to compile a project that my friend was working on so that I can check it and continue to track errors and that’s all. He recently upgraded this project to VS 2008, which I don’t have. So I downloaded the express version in the hope that I can just compile it, but no luck, she complains about the lack of headings on the left and right.

It seems to me that, since I already have the full version of VS 2005, I must have at least some (possibly older) version of the files that are mentioned in his project.

Is there a way I can convince VS 2008 to also look in 2005 directories to include library files and library files for compilation?

Also, is this a bad idea? I would rather not go out and buy VS 2008 completely, since I will never use it myself. (In 2005, this work is great for me at the moment, and I usually prefer GCC).

thanks

+4
source share
8 answers

You can use the VC ++ compiler directly from the command line or simply create a new project with a source in Visual Studio 2005. If it does not use some of the functions provided in the new versions of MFC / ATL in 2008 / 2008sp1, you should be able to easily compile the project.

See (“Creating a project from an existing source”) in Visual Studio 2005. Unfortunately, they do not include these libraries in Express Editions.

+1
source

Use the vcvars * .bat script (s) from Visual Studio 2005. See this blogpost from the VC ++ Blog to learn how to do this. You will use older compilers, but the build system from Visual Studio 2008.

+1
source

You can go to Tools> Options> Projects and Solutions> VC ++ Directories and change the Include, Library and Source folders (and Reference, perhaps?) To use the VC ++ 2005 folders.

I would suggest that you simply replace $ (VCInstallDir) with the VS 2005 hard drive. Before doing this, I write down the original values.

However, you just tried to use the OLD 2005 sln and vcproj files? Keep using 2005 at your end and 2008 on it. Store two sets of these files for each environment. Any problems will be related to the library mismatch, which you cannot avoid using the 2008 tools with the 2005 libraries.

+1
source

An easy way to handle this would be to return the solution and project files back to their visual studio 2005 state from the original control (are you using the correct control source?). At this point, you can compile the project until your friend uses any mfc 9 features.

+1
source

The first thing I will try is to upload this to VS 2005 by simply changing the version of the .sln and .vcproj files. In .vcproj, change the version from 9.00 to 8.00 and in .sln change the format of the version from 10.00 to 9.00.

If you do not have fancy material in the project, you are highly likely to just use it like that. It will also avoid updating 2 project files and solutions.

+1
source

This website shows how MFC code can be compiled with versions of Visual Studio Express: link

+1
source

Just for the record, I did this (modifying the include directories and library directories from within the IDE) and it works very well, I have MFC, ATL, that's all.

0
source

Source: https://habr.com/ru/post/1277244/


All Articles