{"id":40173,"date":"2004-03-19T06:58:00","date_gmt":"2004-03-19T06:58:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2004\/03\/19\/why-does-the-resource-compiler-complain-about-strings-longer-than-255-characters\/"},"modified":"2004-03-19T06:58:00","modified_gmt":"2004-03-19T06:58:00","slug":"why-does-the-resource-compiler-complain-about-strings-longer-than-255-characters","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20040319-00\/?p=40173","title":{"rendered":"Why does the Resource Compiler complain about strings longer than 255 characters?"},"content":{"rendered":"<p><a href=\"http:\/\/blogs.msdn.com\/oldnewthing\/posts\/65013.aspx\">  As we learned in a previous entry,  string resources group strings into bundles of 16,  each Unicode string in the bundle prefixed by a 16-bit length.  Why does the Resource Compiler complain about strings  longer than 255 characters?\nThis is another leftover from 16-bit Windows.\nBack in the Win16 days, string resources were also grouped  into bundles of 16, but the strings were in ANSI, not Unicode,  and the prefix was only an 8-bit value.\nAnd 255 is the largest length you can encode in an 8-bit value.\nIf your 32-bit DLL contains strings longer than 255 characters,  then 16-bit programs would be unable to read those strings.\nThis is largely irrelevant nowadays, but the warning remained  in the Resource Compiler for quite some time.\n  It appears to be gone now. Good riddance.\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As we learned in a previous entry, string resources group strings into bundles of 16, each Unicode string in the bundle prefixed by a 16-bit length. Why does the Resource Compiler complain about strings longer than 255 characters? This is another leftover from 16-bit Windows. Back in the Win16 days, string resources were also grouped [&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-40173","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>As we learned in a previous entry, string resources group strings into bundles of 16, each Unicode string in the bundle prefixed by a 16-bit length. Why does the Resource Compiler complain about strings longer than 255 characters? This is another leftover from 16-bit Windows. Back in the Win16 days, string resources were also grouped [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40173","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=40173"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/40173\/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=40173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=40173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=40173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}