Page 1 of 1
Another file saving question

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

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

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

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

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

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

Posted:
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?

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

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

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

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

Posted:
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.

Posted:
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.