{"id":4837,"date":"2014-03-30T15:49:58","date_gmt":"2014-03-30T15:49:58","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/mfc-ribbon-app-not-displaying-ribbon-when-exe-is-copy-pasted-to-a-different-machine-collection-of-common-programming-errors\/"},"modified":"2014-03-30T15:49:58","modified_gmt":"2014-03-30T15:49:58","slug":"mfc-ribbon-app-not-displaying-ribbon-when-exe-is-copy-pasted-to-a-different-machine-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/mfc-ribbon-app-not-displaying-ribbon-when-exe-is-copy-pasted-to-a-different-machine-collection-of-common-programming-errors\/","title":{"rendered":"MFC Ribbon app not displaying ribbon &#8211; when .exe is copy pasted to a different machine-Collection of common programming errors"},"content":{"rendered":"<p>Well, I am facing a strange problem. I have developed a sample MFC ribbon application on my machine &#8211; Windows 7 , with Visual Studio 2008. When I copy paste the .exe onto my laptop and run the app , I don&#8217;t see the ribbon menu (in fact the app has not menu now) .<\/p>\n<p>I have tried looking up the .dll that load in each case(on my work machine and laptop) using process monitor but I am unable to locate what I might be missing. Any help will be greatly appreciated.<\/p>\n<p>Edit 1 &#8211;<\/p>\n<p>Ok, So thanks for your responses. Some progress has been made with this issue<\/p>\n<ol>\n<li>\n<p>I changed my IDE to VS 2010. The ribbon was coded manually and I figured out if I could add it as a resource maybe the problem would be solved. VS 2008 did not have the option of adding a ribbon as a resource.<\/p>\n<\/li>\n<li>\n<p>I installed the VS 2010 Service Pack Redistributable X86\/X64 depending on whether the machine is 32 or 64 bit.<\/p>\n<\/li>\n<li>\n<p>I built a new &#8220;ribbontest.exe&#8221; app from VS 2010 and deployed it on other machines on which I would test my actual app. The ribbon for &#8220;ribbontest.exe&#8221; loads without any problems.<\/p>\n<\/li>\n<\/ol>\n<p><strong>When I deploy my app and run it, first the old menubar loads for a sec or two, then the ribbon flashes and disappears.<\/strong><\/p>\n<p>A little history of the app I am referring to &#8211; Initially my application had the menubar view. I followed this article http:\/\/www.codeguru.com\/cpp\/cpp\/cpp_mfc\/tutorials\/article.php\/c14929\/MFC-Feature-Pack-An-Introduction.htm to accommodate a ribbon.<\/p>\n<p>Any suggestions?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well, I am facing a strange problem. I have developed a sample MFC ribbon application on my machine &#8211; Windows 7 , with Visual Studio 2008. When I copy paste the .exe onto my laptop and run the app , I don&#8217;t see the ribbon menu (in fact the app has not menu now) . [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4837","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=4837"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/4837\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=4837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=4837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=4837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}