Deployment of VC8 CRT

May 18th, 2007

If you build your application using VC8, you probably already are suffering from the new CRT deployment.  There’s a document on MSDN talking about how to do that.  However, if you choose to deploy the CRT as private assemblies, and miss the very subtle line below, you are very likely to be tricked.

  1. Create a folder structure on the development computer that matches the folder structure to be used on the target computer. For this example, create a \bin folder and copy myapplication.exe there. Then create a \bin\mylibrary folder and copy MyLibrary.dll there.
  2. On the development computer, from %PROGDIR%\Microsoft Visual Studio 8\VC\Redist\x86, copy Microsoft.VC80.CRT and Microsoft.VC80.MFC to \bin and to \bin\MyLibrary.

See?  All DLLs been used need to have private assemblies deployed in their own folder.  Most people that I helped with, including myself, are tricked by this.  Special thanks to my colleague, Garret Polk, for pointing this out.

C++/C#, Technical, Windows | Comments Jump to the top of this page

Comments are closed.

Chef Peon's Melange



Social Links