I would suggest modifying the structure so the char string is last.  (Palm
OS likes variables to end at even addresses)
struct abc{
     int b;
     char a[7];
};

Also, is Char[7] a; valid?  or would it be Char a[7];

----- Original Message -----
From: "Ron Clabo" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, September 24, 2002 9:02 AM
Subject: Re: database record -> struct, type cast?


> Henrik,
>
> The basic idea of what you want to do should work fine.  I pretty much do
> the same in my code.  I happen to create typedefs for my structs, but that
> doesn't really matter.  Did you try the code you submitted?  What
happened?
>
> -Ron
> Amherst, NH
>




-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to