file://Busca no Banco de Dados as Informacoes sobre a Senha do
representante
         dbPtrF = NULL;
         OpenDatabase(&dbPtrF, "Config");

   {

       typedef struct
       {
        Char *CodRca;
        Char *NomeRca;
        Char *Senha;
    } StructType;

    StructType *s;
    StructType theStructure;

    h = DmGetRecord(dbPtrF, 0);
    s= (StructType *)MemHandleLock(h);

    theStructure = *s;


    theStructure.CodRca="8";
    theStructure.NomeRca="Regis Daniel";
    theStructure.Senha="saf";

    DmWrite(s, 0, &theStructure, sizeof(theStructure));
    MemHandleUnlock(h);
    DmReleaseRecord(dbPtrF,0,true);

   }

         h = DmQueryRecord(dbPtrF, 0);
         Codigo = (Char *) MemHandleLock(h);
         Nome = Codigo + StrLen(Codigo) + 1;
         Senha = Nome + StrLen(Nome) + 1;
         MemHandleUnlock(h);
         DmCloseDatabase(dbPtrF);

Régis Daniel de OliveiraRégis Daniel de Oliveira Gerente de Informática
Minasmix Atacado Distribuidor Ltda



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

Reply via email to