| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual C++ Programming Ask questions about Windows programming with Visual C++ and help others by answering their questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
convert CString to foat using _ttoi
i am converting CString to float using _ttoi
CString p; p=("1.122"); CString y; float o; o=_ttoi(p); y.Format(_T("%f"),o); TRACE(y); but answer is 1 and i need 1.122 can anyone help me?? Last edited by lasha; November 23rd, 2009 at 05:40 PM. |
|
#2
|
|||
|
|||
|
Re: convert CString to foat using _ttoi
_ttoi converts to int ... try _ttof
|
![]() |
| Bookmarks |
| Tags |
| convert, cstring, float, _ttoi |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|