{"id":5197,"date":"2014-03-30T19:33:36","date_gmt":"2014-03-30T19:33:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/encountered-an-improper-argument-running-a-windows-xp-mfc-ribbon-application-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:33:36","modified_gmt":"2014-03-30T19:33:36","slug":"encountered-an-improper-argument-running-a-windows-xp-mfc-ribbon-application-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/encountered-an-improper-argument-running-a-windows-xp-mfc-ribbon-application-collection-of-common-programming-errors\/","title":{"rendered":"&ldquo;Encountered an improper argument&rdquo; running a Windows XP MFC Ribbon Application-Collection of common programming errors"},"content":{"rendered":"<p>I have developed a Ribbon application on Vista using VS 2008. It works fine on Vista. I statically link MFC so that I can run it on XP too.<\/p>\n<p>But when I run it on XP, it puts up a dialog box saying &#8220;A required resource was unavailble&#8221;. Later if I press OK on this dialog, it puts up another one saying &#8220;Encountered an improper argument&#8221;. Many such(&#8220;Encountered an&#8230;.&#8221;) dialogs follow(one after another) until I terminate it from the task manager.<\/p>\n<p>Interesting thing I noticed is that this scenario occurs when I just place the mouse pointer over the Ribbon bar. I do nothing else. Then I open the Task manager and see that the memory used is increasing by 8 bytes with every second. Eventually followed by the above scenario.<\/p>\n<p>?????<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have developed a Ribbon application on Vista using VS 2008. It works fine on Vista. I statically link MFC so that I can run it on XP too. But when I run it on XP, it puts up a dialog box saying &#8220;A required resource was unavailble&#8221;. Later if I press OK on this [&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-5197","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5197","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=5197"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5197\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}