I have defined one sub programm named writebyte.
/***********writebyte()***********/
writebyte(char s)
in my programm , i can succeed in using the statement as " writebyte(0xff)".
And now i want to add a HEX control input in my UserInterface to realize input what i want e.g writebyte(t) and i get t value from User input in the userinterface.I use a Numeric input and changed its format to be Hex.
i write my source code for it as following:
writebyte(0xa0);/***send contbyte***/
writebyte(0x00); /*send start address*/
char *t;
GetCtrlVal (debugpanel, DebugPANEL_Datainput,t);
writebyte(*t);
But i failed. Pls help me ! How to correct my problem? Where is the error? Could you just give an example to de
mo it ? Thanks a lot!