I'm doing the way you suggested, since the beginning.
(length of string in one byte)<string>
For the extra version info: just use MGIF1, MGIF2, MGIF3, etc.
I've tried using 4 bytes instead of three, but converting from hex to decimal returns -1, so I didn't bother making it like that.
About a required chunk: forget it, it wouldn't be "global" anymore, since this is for ALL kinds of documents: images, text documents, configuration, settings, etc.
+ you can add it if you want your program to support it.
version and checksum is not necessary, that can be done in the comments. They're not long after all.
quote:
Originally posted by Choli
I agree with cookie on his format, however i'd improve what is in the quote: Name and comments are human-readable strings, I mean: they have no weird symbols, only characters; so you can use null-terminated strings: The size required would be the same (because you add a null character at the end, but you no longer need the byte identifying the lenght) and this way you can have strings of any size. You may want to have a 500-byte comments on the chunk. In any case, the recommendation of making the name and comments as short as possible still applies.
no, sorry. it's a DLL, the developer can do what he wants with that, it's a choice to make.
I like your ideas, but you're just customizing it, it should be and remain global =/