{"id":2115,"date":"2019-04-24T13:19:40","date_gmt":"2019-04-24T11:19:40","guid":{"rendered":"http:\/\/labalec.fr\/erwan\/?p=2115"},"modified":"2019-04-24T13:19:40","modified_gmt":"2019-04-24T11:19:40","slug":"remove-vs-projects-msvcrtxxx-dll-dependency","status":"publish","type":"post","link":"https:\/\/labalec.fr\/erwan\/?p=2115","title":{"rendered":"Remove VS projects msvcrtxxx.dll dependency"},"content":{"rendered":"<p class=\"js-evernote-checked\" data-evernote-id=\"459\">How to rebuild libvmdk (and possibly any VC project) so that it depends on msvcrt.dll and no longer on msvcrtxxx.dll.<\/p>\n<p data-evernote-id=\"459\">Copy\/paste from this <a href=\"http:\/\/reboot.pro\/topic\/19942-vmdk-proxy-for-imdisk\/page-3#entry192350\" target=\"_blank\" rel=\"noopener\">post<\/a> for archiving.<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"463\">\n<p class=\"js-evernote-checked\" data-evernote-id=\"464\">-first install VC2008 express (but should be OK with VC2010 express and possibly newer VS platforms)<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"466\">-install WDK 7.1<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"468\">-modify your VC2008 IDE settings search paths (include and libraries) by adding WDK 7.1 paths first in the list<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"470\"><img loading=\"lazy\" decoding=\"async\" class=\"bbc_img js-evernote-checked\" src=\"http:\/\/i.imgur.com\/XuK0hGN.png\" alt=\"XuK0hGN.png\" width=\"700\" height=\"446\" data-evernote-id=\"23\" \/><\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"471\">\n<p class=\"js-evernote-checked\" data-evernote-id=\"472\"><img loading=\"lazy\" decoding=\"async\" class=\"bbc_img js-evernote-checked\" src=\"http:\/\/i.imgur.com\/seLkgHG.png\" alt=\"seLkgHG.png\" width=\"700\" height=\"446\" data-evernote-id=\"24\" \/><\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"474\">-add\u00a0msvcrt \u00ab\u00a0legacy translator\u00a0\u00bb library (msvcrt_win2000.obj)\u00a0to Linker -&gt; Input -&gt; Additional Dependencies for both DLL projects (zlib and libvmdk)<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"476\"><img loading=\"lazy\" decoding=\"async\" class=\"bbc_img js-evernote-checked\" src=\"http:\/\/i.imgur.com\/ExRxofS.png\" alt=\"ExRxofS.png\" width=\"700\" height=\"491\" data-evernote-id=\"25\" \/><\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"478\">-add specific preprocessor definitions to zlib project :<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"479\">vsnprintf=_vsnprintf;snwprintf=_snwprintf;open=_open;read=_read;close=_close;write=_write<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"481\"><img loading=\"lazy\" decoding=\"async\" class=\"bbc_img js-evernote-checked\" src=\"http:\/\/i.imgur.com\/neDR5uv.png?1\" alt=\"neDR5uv.png?1\" width=\"700\" height=\"421\" data-evernote-id=\"26\" \/><\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"483\">And voila\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"bbc_emoticon js-evernote-checked\" src=\"http:\/\/reboot.pro\/public\/style_emoticons\/default\/smile.png\" alt=\":)\" width=\"20\" height=\"20\" data-evernote-id=\"886\" \/><\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"484\">\n<p class=\"js-evernote-checked\" data-evernote-id=\"485\">You should end up with the below, i.e a dependency to a msvcrt.dll<\/p>\n<p class=\"js-evernote-checked\" data-evernote-id=\"486\">\n<p class=\"js-evernote-checked\" data-evernote-id=\"487\"><img loading=\"lazy\" decoding=\"async\" class=\"bbc_img js-evernote-checked\" src=\"http:\/\/i.imgur.com\/lcahBQh.png\" alt=\"lcahBQh.png\" width=\"700\" height=\"523\" data-evernote-id=\"27\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to rebuild libvmdk (and possibly any VC project) so that it depends on msvcrt.dll and no longer on msvcrtxxx.dll. Copy\/paste from this post for archiving. -first install VC2008 express (but should be OK with VC2010 express and possibly newer VS platforms) -install WDK 7.1 -modify your VC2008 IDE settings search paths (include and libraries) <a href='https:\/\/labalec.fr\/erwan\/?p=2115' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[110,111],"class_list":["post-2115","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-mscvrt","tag-visual-studio","category-1-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2115"}],"version-history":[{"count":1,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2115\/revisions"}],"predecessor-version":[{"id":2116,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=\/wp\/v2\/posts\/2115\/revisions\/2116"}],"wp:attachment":[{"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labalec.fr\/erwan\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}