Hi,

I'm new in the programmation of Palm and still have an error when I wish to
add information in on CharPtr of my structure.. Here my code



typedef struct
 {
 char *user ;
 char *nomClient ;
 UInt codeClient ;
 char *nomFournisseur ;
 char *noTelFourn ;
 UInt jourLiv ;
 UInt monthLiv ;
 UInt yearLiv ;
 UInt limiteConf ;
 } InfoInterne ;


UInt16 Initialize(void)
    {
    InfoInterne *lr ;

        (void *)lr = MemPtrNew(100) ;

    lr->codeClient = 0 ;
    lr->jourLiv = 0 ;
    lr->monthLiv = 0 ;
    lr->yearLiv = 0 ;
    lr->limiteConf = 99 ;





    StrCopy(lr->user, "Inconnu", 79) ;  // the error is generate at this
point

    StrCopy(lr->nomClient, "Inconnu") ;
    StrCopy(lr->nomFournisseur, "Inconnu") ;
    StrCopy(lr->noTelFourn, "0") ;

 return 1 ;// saveRecord(infoInterneDB, &lr, sizeof(InfoInterne)) ;


thanks

Fabrice



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

Reply via email to