Hi, I suggest a couple of ways: 1. If you convert the numeric value to hex format, each pair of characters will be the ascii code of the letter:
ie: CreatorID = 1633969266 = 61646472H = 'addr' = ASC(61H), ASC(64H), ASC(64H), ASC(72H) So convert the CreatorID to Hex, take each 2 characters and get the ASCII code of that number. 2. Calculate the (CreartorID modulus 256) wich will give you the ascii value, then right shift 8 bits the number to get the next value repeating the modulus operation 2 more times. In this case the text will be reversed. 3. I think there is an API that converts that UInt32 to String, but I am not a C developer. Hope it helps Regards Oscar -----Mensaje original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Phil Enviado el: Martes, 18 de Abril de 2006 22:14 Para: Palm Developer Forum Asunto: Convert UInt32 creatorID to 4-letter string Based on APIs from the Data and Resource Manager, the creator ID of an application is a UInt32. How can I convert the UInt32 creator ID into a 4-letter string (like "addr" or "calc"...) and vice versa? Thanks in advance. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
