{"id":1687,"date":"2022-08-30T15:18:36","date_gmt":"2022-08-30T15:18:36","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/27\/problem-about-loadimage-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:18:36","modified_gmt":"2022-08-30T15:18:36","slug":"problem-about-loadimage-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-loadimage-collection-of-common-programming-errors\/","title":{"rendered":"problem about loadimage-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/19679b27b8636570d9c8e2875452e7a4?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nyves<br \/>\nc++ resources loadimage<br \/>\nI&#8217;m having a problem to add a bitmap image to a static control box, i got an unhandled exception when i run my program. Here&#8217;s my code.FROM RC FILE :ID_ICON1 BITMAP &#8220;icon1.bmp&#8221;CPP FILE :HANDLE bIcon1; HWND hIcon; hIcon = CreateWindowEx(0, &#8220;Static&#8221;, NULL, WS_CHILD | WS_VISIBLE|SS_BITMAP, 250, 100, 100, 100, hwnd, NULL, GetModuleHandle(NULL), NULL); bIcon1 = LoadImage(GetModuleHandle(NULL), MAKEINTRESOURCE(ID_ICON1), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE| LR_DEFAULTSIZE);If i use fu<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-27 12:29:57. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>yves c++ resources loadimage I&#8217;m having a problem to add a bitmap image to a static control box, i got an unhandled exception when i run my program. Here&#8217;s my code.FROM RC FILE :ID_ICON1 BITMAP &#8220;icon1.bmp&#8221;CPP FILE :HANDLE bIcon1; HWND hIcon; hIcon = CreateWindowEx(0, &#8220;Static&#8221;, NULL, WS_CHILD | WS_VISIBLE|SS_BITMAP, 250, 100, 100, 100, hwnd, NULL, [&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-1687","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1687","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=1687"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1687\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}