This blog is about developing Windows applications using Visual Studio. All postings on this weblog are provided "AS IS" with no warranties, and confer no rights. Use of any samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm
Your host Nikola Dudar is a Program Manager in Windows division of Microsoft Corporation. He has been working on Windows Web Services API during Windows 7 and various additions to Visual C++ during VS2005 and VS2008. More details are in LinkedIn profile under Nikola's formal name Mykola Dudar.
If you are interested in program management and project management, check out my other blog at http://www.pmsnack.com/ where I collect best practices and other topics interesting to program and project managers.
To send feedback, comments or requests for new posts, please use the contact form.
Recently another issue has come up another FAQ. Folks try using tools without installing Visual Studio and some additional work has to be done for Beta 1 or CTP of Visual Studio 2005. Just FYI, this is unsupported way to use VC++ tools and my recommendations are as-is with no guarantees. However if a workaround I list below does not work for you, please let me know, I would try to figure what I missed.
So let’s say you have a desktop A with VS2005 installed. You have another desktop B without VS2005 installed. You want to copy the content of "C:\Program Files\Microsoft Visual Studio 8\VC\bin\" from desktop A to desktop B to build your code on desktop B. Here is what you need to do (obviously, it is one of possible ways to make this work):
1) Copy compiler and tools from "C:\Program Files\Microsoft Visual Studio 8\VC\bin\" to "%YOUR_TOOLS_FOLDER%\bin\"
a. On desktop A, go to %SYSTEMROOT%\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50124.12800_x-ww_eac26a7b\
b. Copy msvcr80.dll from this folder to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B
3) Copy manifest for the CRT assembly
a. On desktop A, go to either %SYSTEMROOT%\WinSxS\Policies\ or %SYSTEMROOT%\WinSxS\Manifests
b. Copy x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50124.12800_x-ww_eac26a7b.Manifest to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B
c. Rename this file to “Microsoft.VC80.CRT.manifest”
4) Copying PDB Support
a. Back desktop A, go to "C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\"
b. Copy msobj80.dll, mspdb80.dll, mspdbcore.dll, mspdbsrv.exe to "%YOUR_TOOLS_FOLDER%\bin\" on desktop B
You should be able to compile and link your code. If you are not, please let me know about this, I would try to investigate why it does not work.
You are invaluable. I hate installing programs that are as intrusive as a development environment, but I really love programming. Your recipe for getting the Visual Studio C compiler to work worked on my daughter's PC, but not on mine though. We basically have the same install, apart from some silly games on her's, so I have no clue to the reason for this difference. I did get it to work on mine however, by just plain copying the CRT assemblies from the provisional PC with the full installation to my own PC's %SYSTEMROOT%\WinSxS (and removing the copy I made, according to your instructions, to %MY_TOOLS_FOLDER%\bin).
For sake of clarity, I copied
Manifests\x86_Microsoft.VC80.CRT* and Policies\x86_policy.8.0.Microsoft.VC80.CRT*
Has anything changed in this for VS2005 SP1? Because I can't make it work with this version. I always get this error:
Error: The Side-by-Side configuration information in "d:\work\main\tools.win32\vc8.0\bin\CL.EXE" contains errors. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem (14001).
That is reported by Dependency Walker, on the command prompt I only get "System cannot execute this...".