Hi
I am facing quite an issue now. I need to convert TCHAR type into an int... I tried atoi() but that didnt work so well.
Any ideas... If more specifications needed please tell me.
Hi
I am facing quite an issue now. I need to convert TCHAR type into an int... I tried atoi() but that didnt work so well.
Any ideas... If more specifications needed please tell me.
According to MSDN (searching there seems like the obvious thing to do), it's _tstoi.
Yes thank you works fine... Sorry that I spam with such an easy thing but I always get confused while doing type conversion. It takes everytime hours to get the correct code.
Maybe you should do a printoff of the MSDN page that covers that type of thing then. Especially if it is taking you hours to figure out which function to use.
Ok next time I will certainly do that
Download MSDN, actually. Its sooooooo much easier. Particularly if you run dual monitors.
In the link below are some alternative ways to do this.
Sorry, it's in german, but I think you'll understand it ...
http://www.c-plusplus.de/forum/viewt...-is-39488.html
Advantages / disadvantages are described here down below in the "Fazit" ...
Greetz
Greenhorn
Last edited by Greenhorn__; 10-29-2008 at 11:32 AM.