CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    61

    _tstoi in Unicode

    Hi all,
    I have to do such kind of stuff that i have to make a simple dialog based application for chinese System.
    It will just open a dialog having one edit field and two buttons(OK,Cancel)
    Input in edit field should be in chinese and should be integer.
    I will UpdateData() to take its value in CString variable.
    then how to take that chinese number and store in an int variable, is it possible by using _tstoi, if yes how to do?.
    Or what can i do ?

    Sumit,
    Last edited by Sumit.Dua; January 7th, 2008 at 10:01 AM.

  2. #2
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570

    Re: _tstoi in Unicode

    It seems you have sorted out the steps. Why don't you start the project and ask a specific question if you get stuck somewhere.
    If there is no love sun won't shine

  3. #3
    Join Date
    Jul 2006
    Posts
    61

    Re: _tstoi in Unicode

    I want to know that if i have to do some arithmatic calculations on an integer which is given by user at run time in edit box.
    And that program is running in chinese System, so the input integer to edit box will also be in chinese.
    So thats what i want to know that how to take the value of that edit field and assigned it to an int type variable for further arithmatic operations.
    If i have to do it for english input then what i will do is call UpdateData() and then i will call atoi() and assign it to int type variable.
    But my question is how to do this if input is in chinese or any other language.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured