C++/VB - No _ttof in Visual Studio 2008
Asked By Oliver Regenfelder
21-May-10 06:15 AM
Hello,
Is there no _ttof function in Visual Studio 2008,
or do I need to include some special header file?
I get: error C3861: '_ttof': identifier not found
I use Visual Studio 2008, in a non unicode build.
The codebase originates from VS6.
Best regards,
Oliver
Hello Joseph M. Hello Joseph M. Newcomer
(1)
Visual Studio 2008
(1)
Giovanni Hello Giovanni Dicanio
(1)
Joe Joseph M. Newcomer
(1)
Oliver Oliver
(1)
Dave Oliver
(1)
David Lowndes replied to Oliver Regenfelder
Oliver,
Have you included tchar.h ?
Dave
Giovanni Dicanio replied to Oliver Regenfelder
In <tchar.h> of VS2008 SP1, I can find:
(but not _ttof...)
Giovanni
Giovanni Dicanio replied to David Lowndes
In <tchar.h> of VS2008 SP1, I could find _tstof, but not _ttof.
But it seems that the related MSDN web page lists both forms (_tstof and
_ttof) of TCHAR-mapping:
http://msdn.microsoft.com/en-us/library/hc25t012(VS.90).aspx
Instead, the <tchar.h> included in VS2010 does have both _ttof and _tstof
mapping.
...Seems like a bug in VS2008's <tchar.h> ?
Giovanni
Oliver Regenfelder replied to Giovanni Dicanio
Hello,
Good so I am not the only one who expected it to work.
I changed all occurences of atof to _tstof and also changed all _ttoi
to _tstoi just to use the same prefix style everywhere. Thanks for
pointing out _tstof.
BTW, is there any difference between the _t and _ts family e.g.
_ttoi and _tstoi? Accoriding to the documentation, they are all mapped
the same way.
Best regards,
Oliver
Joseph M. Newcomer replied to Oliver Regenfelder
There is none. There was no _ttof in VS6 at all, and in VS.NET it was named, suprisingly,
_tstof (check the docs! Look under _atof). Yes, the naming is inconsistent. No, there
is no sensible reason for having done this. But it is what we are stuck with.
joe
Joseph M. Newcomer [MVP]
email: newcomer@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Oliver Regenfelder replied to Joseph M. Newcomer
Hello,
Horribly they mention _ttof on the following page (VS2008):
http://msdn.microsoft.com/en-us/library/hc25t012%28VS.90%29.aspx
and it is also mentioned on
http://www.flounder.com/cstring.htm#Converting%20a%20CString%20to%20a%20double
maybe this should be updated?
Best regards,
Oliver
Can I get devenev.exe / Upgrade to work ? C++ / VB Hello Can I somehow get the devenv SolutionFile.sln / Upgrade command to work ? Or is there solution (workspace) from the command line or automated Thank you, Timothy Madden VC MFC Discussions Joseph M. Joseph M. Newcomer (1) Visual Studio 2008 (1) Visual Studio (1) Timothy Madden (1) Upgrade (1) Command build them from the command line. What version of VS are you upgrading to? joe Joseph M. Newcomer [MVP] email: newcomer@flounder.com Web: http: / / www.flounder.com MVP Tips: http: / / www have never had to go to all this effort to get it to build. joe Joseph M. Newcomer [MVP] email: newcomer@flounder.com Web: http: / / www.flounder.com MVP Tips: http
Exe2005, DLL2003 = resource problem C++ / VB Hello, I have a dll built with VS2003 which contains a couple of dialogs, icons, etc there is a small difference between the AFX_MODULE_STATE declared in 2003 and 2008. But I'm having difficulty in linking this to the problem. There's not much relevant on Google, so I'm wondering if there is some known incompatibility between using a 2003 built DLL with a not* the same as "vs2008". You say "the AFX_MODULE_STATE is different" but then say "I'm having difficulty linking this to the problem". Wouldn't it strike you that this difference components from one version of MFC with components from a different version of MFC. joe * ** * Joseph M. Newcomer [MVP] email: newcomer@flounder.com Web: http: / / www.flounder.com MVP Tips: http: / / www 24T$#1A&6"!';&]B M86P@3&EG:'1I;F<@06YG;&4`````! ```'@X0DE-!!D21E@@1VQO8F%L($%L M = &ET = 61E``````0````> .$))30 / S"U!R:6YT($9L86 = S````"0`````````` M`0`X0DE-! H.0V]P> 7)I9VAT($9L86<``````0``.$))32<0%$IA<&%N97-E M
AfxGetAppEx() ? C++ / VB Hello Is there a way, like AfxGetApp(), to get the CWinAppEx (instead of CWinApp) ? What is the difference between CWinApEx::GetString() and CWinApp::GetProfileString() ? Thank you, Timothy Madden VC MFC Discussions Joseph M. Joseph M. Newcomer (1) Joseph M. Newcomer (1) Module (1) Class (1) GetProfileString (1) SendMessage (1) GetString (1) GetParent (1) Why outside the CWinApp[Ex] needs to know about what is in the CWinApp[Ex]. joe Joseph M. Newcomer [MVP] email: newcomer@flounder.com Web: http: / / www.flounder.com MVP Tips: http
Regression - Instruction C++ / VB Hello, a b c fx 0, 639242 0, 032636 19, 819060 fy 0, 003413 -0, 646874 good instruction? c) Maybe I can use Excel, or? Thanks. Regards Andreas VC MFC Discussions Joseph M. Hello Joseph M. Newcomer (1) Joseph M. Newcomer (1) Excel (1) EventArgs (1) Routine (1) Class (1) Bytes (1) Bit (1) Excel