How to convert _TCHAR* to long
-
Hi... Can anyone tell me hoe to convert _TCHAR* to long.. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ _TCHAR *csTest; I want to convert it to long.. plz help me thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
-
Hi... Can anyone tell me hoe to convert _TCHAR* to long.. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ _TCHAR *csTest; I want to convert it to long.. plz help me thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
See into msdn for
atol, _atol_l, _wtol, _wtol_l
functions. Is this you want?
Manish Patel. B.E. - Information Technology.
-
Hi... Can anyone tell me hoe to convert _TCHAR* to long.. \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ _TCHAR *csTest; I want to convert it to long.. plz help me thank you manju
Hi.. I am Mnaju.I have Completed my B.E Computers Science.Lokking for a job.I am interested in VC++ manju
TCHAR *csTest = ...;
long lValue = _tcstol(csTest, NULL, 10);
Too many passwords to remember? Try KeePass Password Safe!
-
See into msdn for
atol, _atol_l, _wtol, _wtol_l
functions. Is this you want?
Manish Patel. B.E. - Information Technology.
You can use this also:
TCHAR *x = "1252655"; long val; sscanf(x, "%ld", &val);
Manish Patel. B.E. - Information Technology.
-
You can use this also:
TCHAR *x = "1252655"; long val; sscanf(x, "%ld", &val);
Manish Patel. B.E. - Information Technology.
you should certainly learn what a TCHAR is. your code has 50% of chances to crash.
manish.patel wrote:
TCHAR *x = "1252655";
TCHAR* x = _T("1252655");
manish.patel wrote:
sscanf()
WTF ! sscanf() is not TCHAR aware... it handles only ansi strings
[VisualCalc][Binary Guide][CommDialogs] | [Forums Guidelines]