Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. what's the .h file should I include to use _tstof(), alternative of atof() ?

what's the .h file should I include to use _tstof(), alternative of atof() ?

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    flyingxu
    wrote on last edited by
    #1

    I see from msdn that the generic mapping of atof() is _tstof(), but I can't use it even after I include & . So, which .h file should I include?:confused: MSDN: TCHAR.H routine _UNICODE & _MBCS not defined _MBCS defined _UNICODE defined _tstof atof atof _wtof -- modified at 21:20 Wednesday 17th May, 2006

    G 1 Reply Last reply
    0
    • F flyingxu

      I see from msdn that the generic mapping of atof() is _tstof(), but I can't use it even after I include & . So, which .h file should I include?:confused: MSDN: TCHAR.H routine _UNICODE & _MBCS not defined _MBCS defined _UNICODE defined _tstof atof atof _wtof -- modified at 21:20 Wednesday 17th May, 2006

      G Offline
      G Offline
      George L Jackson
      wrote on last edited by
      #2

      You need tchar.h.

      F 1 Reply Last reply
      0
      • G George L Jackson

        You need tchar.h.

        F Offline
        F Offline
        flyingxu
        wrote on last edited by
        #3

        It's very strange that I can use _tstof() in VS.net 2003 but not VC6, even I include the file tchar.h. Maybe I need the latest Platform SDK?:wtf:

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups