Hi,

I'm new to the Palm development and I have some problems with reading
records.
I use GCC and VFDIDE (www.vfdide.com) . I try to read a record with a
structure, but it fails

My Record is firts init before, with 18 characketrs of '\0' - it's  a new
Record !

My code :

typedef struct {
    const char * Name ;
    const char *  Firstname ;
} PersInfo ;

typdef struct {
    char Name[1] ;
} PackedPersInfo;

int cursor = akt_recordIndex ;

PackedPersInfo *    p_Person ;
PersInfo * Person;

VoidHand hrecord = DmQueryRecord ( kontakteDB , cursor ) ;

p_Person = MemHandleLock ( hrecord ) ;

const char * s = p_Person->Name ;

Person->Name = s ;        // at this Point I get an Emulator Error, dont't
write to                                       // CPU Register
s +=  StrLen (s)  + 1  ;

... and so on

So, how can I use struct or is there another (better) way  ?


TIA,

Michael






-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to