Hello everybody, my first post in the list. I'm new in Palm Programming,
although I have several years of experience with C/C++.
I was playing with my first application, a Lire-Euro converter. I wrote this
code:

 double euli = 1936.27;
 FlpCompDouble flotto;
 char valore [80];

 Euro.GetText(valore,80);         // Line 1
 flotto.fd = FlpAToF(valore);    // Line 2
 flotto.d = flotto.d * euli;            // Line 3
 FlpFToA(flotto.fd,valore);        // Line 4
 Lire.SetText(valore);                // Line 5

Euro and Lire are CMLEdit (MobileStudio classes). When debugging the
application, valore is correctly set to the value of the edit box. In line 2
something strange happens: valore is changed (?) by this line and set to
/0/0 etc.
Flotto is then equal to zero, and the conversion obviously is wrong.
Any clue ? Do I have to initialize in some way the Float Manager ?
Is there a simpler way to perform AToF/FToA operations ?

Thanks in advance

Carlo



-- 
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