Talk:C:Custom Resource Files
From GPWiki
The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server. However, the GPWiki forums are still active! Come say hello. [edit] Warning - HaphazardAt a glance, this file format will not work portably between different compilers/architectures. The number 1. thing you must _never_ do when writing portable code is to write internal representations of objects to files or over the network etc, because it is not guaranteed to work. My representation of an int can most certaintly be different to your representation of an int and maybe not even the same size, and so on. No one should take the advice given in this tutorial as a correct or right way of serializing data. You should either work out a platform neutral format for storing data which does not rely on implementation defined (NOT STANDARDISED) representations of objects. Consider using a library such as http://tpl.sourceforge.net/ Otherwise, if you want to learn how to do the wrong thing then this tutorial is correct. This article should be rewritten reflective of these issues. -jeff 13:40 4 Nov 2007 [edit] Missing includes?Hey, nice tutorial. The code seems to be missing few includes though as it wouldn't compile without including stdlib.h (for the exit() functions) and string.h (for the string comparison and length checking) first. --Janne 14:00, 9 May 2005 (EDT)
[edit] Removal of Credit?The last edit here removed the source code author's name. Should we roll that back? Opinions? Codehead 18:12, 12 August 2006 (EDT)
|


