Building and deploying dll on windows: SxS, manifests and all that jazz

后端 未结 8 1030
野性不改
野性不改 2021-02-04 21:47

Since VS 2005, I see that it is not possible to simply build a dll against MS runtime and deploy them together (http://www.ddj.com/windows/184406482). I am deeply confused by ma

8条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 22:21

    The simplest thing to do: Assuming a default install of VS2005, you will have a path like:

    C:\Program Files\Microsoft Visual Studio 8\VC\redist\x86\Microsoft.VC80.CRT
    

    Go, grab the files in this redist folder, and place the .manifest AND the msvcr80.dll (At least) in your applications .exe folder. These files, present in the root of your installation, should enable your exe and all dlls linked against them, to work flawlessly without resorting to merge modules, MSIs or indeed any kind of just-in-time detection that the runtime is not installed.

提交回复
热议问题