Page 1 of 1

Another file saving question

PostPosted: Jun 10, 2004 @ 3:31am
by egarayblas

PostPosted: Jun 10, 2004 @ 3:41am
by Kzinti

PostPosted: Jun 10, 2004 @ 3:51am
by j.edwards

PostPosted: Jun 10, 2004 @ 3:57am
by Dan East

PostPosted: Jun 10, 2004 @ 4:27am
by fzammetti

PostPosted: Jun 10, 2004 @ 6:57pm
by Dan East

PostPosted: Jun 10, 2004 @ 7:09pm
by fzammetti
Good point. I guess if that's a situation you want to avoid you could just have a char[x] area, and manually fill that in with your strings. I suppose there's something like Java's StringTokenizer that could allow you re-constitute the strings on read?

PostPosted: Jun 10, 2004 @ 8:37pm
by Dan East

PostPosted: Jun 10, 2004 @ 9:01pm
by fzammetti

PostPosted: Jun 10, 2004 @ 9:06pm
by mlepage

PostPosted: Jun 10, 2004 @ 11:35pm
by egarayblas

PostPosted: Jun 11, 2004 @ 12:19am
by fzammetti
To what kind of string are you referring? Certainly a straight char[] doesn't have a 256 character limit, and I don't think a TCHAR does (am I wrong anyone?). I'd be surprised if CString had such a limit, although I don't know.

PostPosted: Jun 11, 2004 @ 2:23am
by j.edwards
If you are going to use structures like fzammetti suggested then just be careful of alignment issues. I had some trouble that only gave access violations on Dell Axims to do with not having correctly aligned structures. Generally I just put the 32bit values first and the 1byte values at the end.