Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hello,

I am trying to add a feature to my BREW app which will display the current BREW version for specific device. I am trying the following code :

void TestBREWVersion(textViewer * pMe)
{
uint32 ver;
char pszString[STR_SIZE];
char version[MAX_STR_SIZE];

ver = GETAEEVERSION(pszString, STR_SIZE, GAV_LATIN1);
SPRINTF (version,"BREW Version = %d\n",ver);
........

}
The problem is in the output file, it gives only a number ; "50398224" as BREW version :confused: .

I need the display would be "2.0.2.6"...or something like that.

Need help..it is Urgent.

Thanks!

Did you try to analyze "ver" like hexadecimal value?
50398224d = 3010410h = 3.1.4.16

Did you try to analyze "ver" like hexadecimal value?
50398224d = 3010410h = 3.1.4.16

rvlab wrote:Did you try to analyze "ver" like hexadecimal value?
50398224d = 3010410h = 3.1.4.16
Hi there,
I have resolved it by doing "%s" in SPRINTF(). It gives me the correct result :D
Thanks so much.

rvlab wrote:Did you try to analyze "ver" like hexadecimal value?
50398224d = 3010410h = 3.1.4.16
Hi there,
I have resolved it by doing "%s" in SPRINTF(). It gives me the correct result :D
Thanks so much.

farhana wrote:Hi there,
I have resolved it by doing "%s" in SPRINTF(). It gives me the correct result :D
Thanks so much.
"%s" in SPRINTF() crashes the emulator however it works on DBGPRINTF();
:confused:

farhana wrote:Hi there,
I have resolved it by doing "%s" in SPRINTF(). It gives me the correct result :D
Thanks so much.
"%s" in SPRINTF() crashes the emulator however it works on DBGPRINTF();
:confused: