--- raju raya wrote:
> ...
> typedef struct
> {
> unsigned int ID;
> const char * name;
> const char * address;
> }Details;
> ...
> DmOpenRef dbRef =
> DmOpenDatabaseByTypeCreator('res1','myd1',mode);
You didn't define mode anywhere.
> ...
> DmStrCopy(p, offset, (CharPtr)& x->name);
Too much indirection. Use:
DmStrCopy(p, offset, (CharPtr)x->name);
> ...
> DmStrCopy(p, offset,(CharPtr)&x->address);
ditto
PS: Don't use standard C types whenever you can use a
Palm defined type. Instead of char, use Char; instead
of int, use Int16; etc.
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/