There could easily be an alignment issue. I remember helping someone here
convert a file that was originally created under gcc to CodeWarrior. There were
problems until we found that gcc would put elements of an array of the following
type:
typedef struct {
unsigned char dawg[3];
} DAWGEntry;
on 3 byte boundaries, but CodeWarrior would put the elements onto 4 byte
boundaries. I'm not saying that the same thing is happening to you; just saying
that there *are* differences between the compilers.
-- Keith Rollin
-- Palm OS Emulator engineer
"Mitch_Fawcett" <[EMAIL PROTECTED]> on 07/22/2000 12:17:36 PM
Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent by: "Mitch_Fawcett" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
cc: (Keith Rollin/US/PALM)
Subject: Database is shifted
I have pretty much converted my program from GCC to CW 6.0 but I have one
remaining problem. When my unpack routine retrieves a record and displays
it, the leading characters of each item are being dropped. "Unfiled" became
"led" and "Supermarket" became "permarket". I'm not ruling out a program
bug, but is there an alignment issue in going from GCC to CW that could be
the cause? Because of the missing characters in my record items it bombs
out pretty fast. Other than this problem it looks like my program runs.
Forms appear, and buttons and menus work as expected. I'm using Win98 and
Code Warrior 6.0 with SDK 3.5 and Update 1. I have not installed any of the
patches for Code Warrior.
Mitch Fawcett
Tapn'see Software
Home of SuperList2
http://www.tapnsee.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/