Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString to float conversion or Vice-Versa. Pin
toxcct11-Jun-08 2:42
toxcct11-Jun-08 2:42 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Le@rner11-Jun-08 2:45
Le@rner11-Jun-08 2:45 
AnswerRe: CString to float conversion or Vice-Versa. Pin
Graham Shanks11-Jun-08 2:44
Graham Shanks11-Jun-08 2:44 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Le@rner11-Jun-08 2:49
Le@rner11-Jun-08 2:49 
GeneralRe: CString to float conversion or Vice-Versa. Pin
Graham Shanks11-Jun-08 3:02
Graham Shanks11-Jun-08 3:02 
AnswerRe: CString to float conversion or Vice-Versa. Pin
Jijo.Raj11-Jun-08 3:02
Jijo.Raj11-Jun-08 3:02 
AnswerRe: CString to float conversion or Vice-Versa. Pin
KarstenK11-Jun-08 3:55
mveKarstenK11-Jun-08 3:55 
AnswerRe: CString to float conversion or Vice-Versa. Pin
krmed11-Jun-08 4:01
krmed11-Jun-08 4:01 
I answered this for you on Codeguru, but in case you visit here more often...

The most likely reason I can think of (since you don't explain "not working" is this...

If you application is Unicode (default for VS2005 and later) then you can either change it to MBCS, or change your code to:
float fvar;
CString foo;
foo = _T("123.45");
fvar= _tstof(foo);

This change will allow it to work with either Unicode or MBCS.

Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

AnswerRe: CString to float conversion or Vice-Versa. Pin
jhwurmbach11-Jun-08 4:17
jhwurmbach11-Jun-08 4:17 
QuestionGetDlgItem() does not take 1 parameter Pin
Anu_Bala11-Jun-08 2:32
Anu_Bala11-Jun-08 2:32 
AnswerRe: GetDlgItem() does not take 1 parameter Pin
Jijo.Raj11-Jun-08 2:40
Jijo.Raj11-Jun-08 2:40 
AnswerRe: GetDlgItem() does not take 1 parameter Pin
Le@rner11-Jun-08 2:40
Le@rner11-Jun-08 2:40 
AnswerRe: GetDlgItem() does not take 1 parameter Pin
Cedric Moonen11-Jun-08 2:43
Cedric Moonen11-Jun-08 2:43 
AnswerRe: GetDlgItem() does not take 1 parameter Pin
Hamid_RT11-Jun-08 2:56
Hamid_RT11-Jun-08 2:56 
AnswerRe: GetDlgItem() does not take 1 parameter Pin
KarstenK11-Jun-08 3:58
mveKarstenK11-Jun-08 3:58 
QuestionCDC MoveTo(int,int) Pin
subramanyeswari11-Jun-08 1:48
subramanyeswari11-Jun-08 1:48 
AnswerRe: CDC MoveTo(int,int) Pin
CPallini11-Jun-08 1:53
mveCPallini11-Jun-08 1:53 
GeneralRe: CDC MoveTo(int,int) Pin
subramanyeswari11-Jun-08 2:52
subramanyeswari11-Jun-08 2:52 
AnswerRe: CDC MoveTo(int,int) Pin
Jijo.Raj11-Jun-08 1:55
Jijo.Raj11-Jun-08 1:55 
AnswerRe: CDC MoveTo(int,int) Pin
Hamid_RT11-Jun-08 2:04
Hamid_RT11-Jun-08 2:04 
AnswerRe: CDC MoveTo(int,int) Pin
achainard11-Jun-08 2:09
achainard11-Jun-08 2:09 
Questionthreadcreation Pin
Mohanraj D11-Jun-08 1:32
Mohanraj D11-Jun-08 1:32 
AnswerRe: threadcreation Pin
Jijo.Raj11-Jun-08 1:39
Jijo.Raj11-Jun-08 1:39 
GeneralRe: threadcreation Pin
Mohanraj D11-Jun-08 2:22
Mohanraj D11-Jun-08 2:22 
GeneralRe: threadcreation Pin
Jijo.Raj11-Jun-08 2:56
Jijo.Raj11-Jun-08 2:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.