Eduardo,
Here is part of my code and it is the only place where I use MemHandleLock and
unlock.. that is it.
Boolean CalculateRisk()
{
ControlType* ctl;
Boolean handled = true;
MemHandle textH;
char *str;
double PI;
...
PI += -1.236215274 - 2.598564382 - 2.119863737 + 8.600789247;
PI = exp(PI);
PI = (1.0 - pow(0.906,PI))* 100.0;
str = MemHandleLock(textH);
doubleToStr(str, PI, 2);
MemHandleUnlock(textH);
FldSetTextHandle(GetObjectPtr(MainFieldRisk),textH);
FldDrawField(GetObjectPtr(MainFieldRisk));
MemHandleFree(textH);
return handled;
}
I really appreciate your help.
Carlos
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/