Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Windows > Re: version str...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 288 of 319
Post > Topic >>

Re: version strings in .rc files

by "toby" <toby@[EMAIL PROTECTED] > Jul 16, 2005 at 10:36 AM

James W. Walker wrote:
> In all the CodeWarrior examples of VERSIONINFO blocks in .rc files, the
> strings end with \0, e.g.,
>
> VALUE "FileVersion", "1.0\0"

Since string literals in RC have no terminator by default, an explicit
terminator would seem to be necessary so that the resource can be
properly parsed.

>
> I don't see anything about this in Microsoft's do***entation on
> VERSIONINFO resources.

This page is coy on the issue:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/versioninfo_resource.asp

But this one, "Designing COM interfaces", does include an example
resource definition that uses \0 terminators:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncomg/html/msdn_design.asp

> Is this a workaround for a bug in CodeWarriors
> .rc compiler, or a workaround for a bug in certain versions of Windows,
> or what?

Probably neither; it just seems to be the (undo***ented) "way it's
done". An unscientific Google search shows the practice to be
ubiquitous (including VS generated RC files) and this is also how I
happen do it in my resource descriptions, which are variously compiled
by MinGW, CW, and occasionally Windows-hosted tools.
 




 2 Posts in Topic:
version strings in .rc files
"James W. Walker&quo  2005-07-16 06:26:45 
Re: version strings in .rc files
"toby" <toby  2005-07-16 10:36:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 14:32:34 CDT 2008.