I could do it this way and it works.
Int32 size = 0; // strinf length
Int32 i = 0; // character position
UInt32 value = 0; // UInt32 value
UInt32 pos = 0; // base position
size = StrLen(str);
for(i = (size - 1);i >= 0;i--){
value = value | (UInt32)str[i] << pos;
pos += 8;
}
Anuradha
__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/