{"id":38833,"date":"2004-06-17T07:02:00","date_gmt":"2004-06-17T07:02:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/06\/17\/the-evolution-of-dialog-templates-introduction\/"},"modified":"2004-06-17T07:02:00","modified_gmt":"2004-06-17T07:02:00","slug":"the-evolution-of-dialog-templates-introduction","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040617-00\/?p=38833","title":{"rendered":"The evolution of dialog templates &#8211; Introduction"},"content":{"rendered":"<p>In the history of Windows, there have been four versions of  dialog templates.  And despite the changes, you&#8217;ll see that  they&#8217;re basically all the same.\n  My secret goal in this six-part series  is to address questions people have had along the lines of  &#8220;I&#8217;m trying to generate a dialog template in code, and it&#8217;s  not working.  What am I doing wrong?&#8221;\n  As it turns out, that you can get the resource compiler to tell you  what you&#8217;re doing wrong.  Take the template that you&#8217;re trying  to generate, create an *.rc file for it and run it through  the resource compiler.  Attach the resource to a dummy program  and dump the bytes!  Compare the compiler-generated template  against the one you generated.  Look for the difference.\n  In other words: To see what you&#8217;re doing wrong, take somebody  who does it right and compare.  Clearly there&#8217;s a difference  somewhere.  <b>It&#8217;s just bytes.<\/b>\n  Anyway, enough of the rant against laziness.  The next several  days will cover the evolution of the dialog template, with  annotated byte dumps for people who are trying to figure out  why their dialog template isn&#8217;t working.<\/p>\n<p>  Non-geeks may want to go into hibernation for a while,  since this will take over a week to play out.  I&#8217;ll try to keep you amused with the non-technical  side-postings.  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the history of Windows, there have been four versions of dialog templates. And despite the changes, you&#8217;ll see that they&#8217;re basically all the same. My secret goal in this six-part series is to address questions people have had along the lines of &#8220;I&#8217;m trying to generate a dialog template in code, and it&#8217;s not [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-38833","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>In the history of Windows, there have been four versions of dialog templates. And despite the changes, you&#8217;ll see that they&#8217;re basically all the same. My secret goal in this six-part series is to address questions people have had along the lines of &#8220;I&#8217;m trying to generate a dialog template in code, and it&#8217;s not [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/38833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=38833"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/38833\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=38833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=38833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=38833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}