How to convert CString to int in UNICODE app?
-
Hi again, Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi. How can I convert CString to int in UNICODE app? Hope you can comment thank you.
-
Hi again, Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi. How can I convert CString to int in UNICODE app? Hope you can comment thank you.
wtoi
? -
Hi again, Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi. How can I convert CString to int in UNICODE app? Hope you can comment thank you.
or better yet, use the generic char types (TCHAR) and your code will compile for both Unicode and non-Unicode builds. Using Generic Text Mappings[^] _tstoi() is the generic char function for atoi(). Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Hi again, Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi. How can I convert CString to int in UNICODE app? Hope you can comment thank you.
TooShy2Talk wrote:
Now that I'm using UNICODE app, I'm having an error when I tried to convert CString to int using atoi. How can I convert CString to int in UNICODE app?
use generic text mapping function _ttoi
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You/codeProject$$>