This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Another file saving question


Another file saving question

Postby egarayblas » Jun 10, 2004 @ 3:31am

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby Kzinti » Jun 10, 2004 @ 3:41am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby j.edwards » Jun 10, 2004 @ 3:51am

User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Postby Dan East » Jun 10, 2004 @ 3:57am

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby fzammetti » Jun 10, 2004 @ 4:27am

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Dan East » Jun 10, 2004 @ 6:57pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby fzammetti » Jun 10, 2004 @ 7:09pm

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?
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby Dan East » Jun 10, 2004 @ 8:37pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby fzammetti » Jun 10, 2004 @ 9:01pm

...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby mlepage » Jun 10, 2004 @ 9:06pm

www.scalenesoftware.com
Great games for your Palm and Pocket PC!
User avatar
mlepage
pm Insider
 
Posts: 1050
Joined: Aug 3, 2003 @ 4:47am
Location: Canada


Postby egarayblas » Jun 10, 2004 @ 11:35pm

-- home of the think & tap games!
User avatar
egarayblas
pm Insider
 
Posts: 627
Joined: Sep 14, 2002 @ 1:50am
Location: Philippines


Postby fzammetti » Jun 11, 2004 @ 12:19am

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.
...and so I said to Mr. Gates: "$640 billion should be enough for anyone!"
User avatar
fzammetti
pm Insider
 
Posts: 1496
Joined: Jun 4, 2002 @ 6:21pm
Location: Omnytex Technologies


Postby j.edwards » Jun 11, 2004 @ 2:23am

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.
User avatar
j.edwards
pm Member
 
Posts: 240
Joined: Oct 29, 2003 @ 11:09am
Location: Australia


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum