{"id":57,"date":"2007-05-18T00:44:22","date_gmt":"2007-05-18T04:44:22","guid":{"rendered":"http:\/\/www.cchsu.com\/art-en\/2007\/05\/18\/57\/"},"modified":"2007-05-18T00:46:02","modified_gmt":"2007-05-18T04:46:02","slug":"deployment-of-vc8-crt","status":"publish","type":"post","link":"http:\/\/www.cchsu.com\/art-en\/2007\/05\/18\/57\/","title":{"rendered":"Deployment of VC8 CRT"},"content":{"rendered":"<p>If you build your application using VC8, you probably already are suffering from the new CRT deployment.\u00a0 There&#8217;s a <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/ms235291(vs.80).aspx\">document on MSDN <\/a>talking about how to do that.\u00a0 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.<\/p>\n<ol>\n<li><em>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.<\/em><\/li>\n<li><em>On the development computer, from %PROGDIR%\\Microsoft Visual Studio 8\\VC\\Redist\\x86, copy Microsoft.VC80.CRT and Microsoft.VC80.MFC <strong>to \\bin and to \\bin\\MyLibrary<\/strong>.<\/em><\/li>\n<\/ol>\n<p>See?\u00a0 All DLLs been used need to have private assemblies deployed in their own folder.\u00a0 Most people\u00a0that I helped with, including myself,\u00a0are tricked by this.\u00a0 Special thanks\u00a0to my colleague,\u00a0Garret\u00a0Polk, for pointing this out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you build your application using VC8, you probably already are suffering from the new CRT deployment.\u00a0 There&#8217;s a document on MSDN talking about how to do that.\u00a0 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. Create a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,6],"tags":[],"_links":{"self":[{"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/posts\/57"}],"collection":[{"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/comments?post=57"}],"version-history":[{"count":0,"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/posts\/57\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/media?parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/categories?post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cchsu.com\/art-en\/wp-json\/wp\/v2\/tags?post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}