With the Visual C++ 2005, MS introduced very weird entities to relieve the DLL hell. It is called Windows Side by Side Assemblies of Windows SxS.
However, it gives you another headache. It is like to bring foxes to expel tigers. It is very annoying to set-up target machine for debugging. If you have only one target machine, there is no such headache. But while you are at work, you would have many target machines at your software quality assurance team.
However, the MSDN doesn’t provide short and easy explanation how to setup debug version of their SxS. Many articles at the MSDN contains just vague explanation or something that does not really matter.
- Visual C++ Libraries as Shared Side-by-Side Assemblies
- Redistributing Visual C++ Files
- How to: deploy using Xcopy
Especially, the last one is the most important article. However, it doesn’t really explain what is supposed to do clearly.
Instead, I would like to show how to prepare target machines for debugging.
Here is the step.
- Copy debug SxS to target machine’s directory where your program to be debugged is copied to.