Page 1 of 1

PostPosted: Tue Apr 29, 2003 5:57 am
by chrisleeuk
Just a couple thoughts...

If I have a hex value stored in a string what is the easiest way to convert this to an integer?

I have created a help file. How do I make Pocket C display specific topics?

PostPosted: Tue Apr 29, 2003 10:47 am
by guy
1) Hex value in string to int

int i ;
string s = "00ab92" ;

i = "0x" + s ;

2) Display section from help file

string sHelpfile = "myhelp.htp" ; // Default in windows folder
string sTopic = "main_contents" ; // Or whatever section you want

exec("open", "peghelp.exe", "file:" + sHelpfile + "#" + sTopic) ;

PocketC CE API interface:
PCForm and CE API forum:

PostPosted: Tue Apr 29, 2003 11:03 am
by chrisleeuk
Thanks Guy, prompt as ever.

I had figured the Hex question from another post but I don't think I would have got the help file solution in a hurry.