Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert TCHAR to INT

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
IS there a way to convert TCHAR into an int?
 
if it's
TCHAR s[3] = "12";
int i;

then it's
i = atoi(s)

otherwise specify your problem
 
yes...

int value;
TCHAR t = 'h';
value = (int)t;
or if it is a value string

// tcharString is equal to 12345;
_ttoi(tcharString);


Matt
 
yep .... atoi ..... what a wonderful thing : )

Thanx guys ....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top