hi all
I've a problem.when I want tio read a record from a database i get a fatal
exception.
what i'm doing is next:
void Leer_Registro(DmOpenRef *dbp,ULong registro)
{
CharPtr Hc;
CharPtr Tip;
VoidHand reg=DmQueryRecord(gEntradaDB,0);
Entrada *e=MemHandleLock(reg);
Hc=e->Hc;
Tip=e->Tip;
MemHandleUnlock(reg);
SetFieldTextFromStr(EntradaHc1Field,Hc);
SetFieldTextFromStr(EntradaTip1Field,Tip);
}
what's wrong?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/