{"id":176,"date":"2007-01-20T21:04:45","date_gmt":"2007-01-20T19:04:45","guid":{"rendered":"https:\/\/alax.info\/blog\/176"},"modified":"2011-09-05T10:15:43","modified_gmt":"2011-09-05T08:15:43","slug":"automated-resource-updater-updated-102","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/176","title":{"rendered":"Automated Resource Updater updated (1.0.2)"},"content":{"rendered":"<p>An update is inspired by necessity to strip <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms908192.aspx\">DS_FIXEDSYS<\/a> dialog style which Visual Studio adds to the dialog template once it is modified in resource editor.<br \/>\n<strong>What&#8217;s new in this build?<\/strong><\/p>\n<ul>\n<li>Fixed: Failure accessing STRINGTABLE values with identifiers such that ((IDS &amp; 0x0F) == 0x0F)<\/li>\n<li>New: Unicode build<\/li>\n<li>New: Static link to C runtime, smaller binary and download<\/li>\n<li>New: <em>Dialogs<\/em> property and accessor to resource dialog templates, dialogs collection exposes enumerator and individual resource accessor of type <em>Dialog<\/em>. <em>Dialog<\/em> object has a read\/write <em>Style<\/em> property<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>JScript script below shows how to strip DS_FIXEDSYS style from every dialog template resource in the binary:<\/p>\n<blockquote><p><em>WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;);<br \/>\nWScript.Echo(&#8220;Current Directory: &#8221; + WshShell.CurrentDirectory);<br \/>\nImage = new ActiveXObject(&#8220;AlaxInfo.ResourceTools.Image&#8221;); Image.Initialize(WshShell.CurrentDirectory + &#8220;\\\\Sample.dll&#8221;);<br \/>\nDialogEnumerator = new Enumerator(Image.Dialogs);<br \/>\nfor(; !DialogEnumerator.atEnd(); DialogEnumerator.moveNext())<br \/>\n{<br \/>\nDialog = DialogEnumerator.item();<br \/>\nWScript.Echo(&#8220;Dialog &#8221; + Dialog.Name + &#8221; style is &#8221; + Dialog.Style);<br \/>\nDialog.Style = Dialog.Style &amp; ~8; \/\/ DS_FIXEDSYS<br \/>\n}<br \/>\nImage.Dialogs.Update();<br \/>\nImage.EndUpdate(false); <\/em><\/p><\/blockquote>\n<p>Keywords: <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms648008.aspx\">RT_DIALOG<\/a>, <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/library\/aa452960.aspx\">DLGTEMPLATE<\/a>, <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms908192.aspx\">DS_FIXEDSYS<\/a><\/p>\n<p>Application Name: Alax.Info Resource Tools<br \/>\nLicense: Free for personal use, request commercial licenses via email or <a href=\"https:\/\/alax.info\/about\/\">contact form<\/a><br \/>\nLatest Version: 1.0.2.249<br \/>\nDownload Link: <del>Alax.Info Resource Tools 1.0.2.249 (155K)<\/del> <a href=\"https:\/\/www.alax.info\/svn\/public\/trunk\/ResourceTools\/ResourceToolsSetup.msi\">ResourceToolsSetup.msi<\/a> (Win32, 32-bit)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>An update is inspired by necessity to strip DS_FIXEDSYS dialog style which Visual Studio adds to the dialog template once it is modified in resource editor. What&#8217;s new in this build? Fixed: Failure accessing STRINGTABLE values with identifiers such that ((IDS &amp; 0x0F) == 0x0F) New: Unicode build New: Static link to C runtime, smaller&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/176\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-resource-tools"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/176\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}