How do I convert a CString to a double in C++?

后端 未结 4 850
被撕碎了的回忆
被撕碎了的回忆 2021-02-07 12:39

How do I convert a CString to a double in C++?

Unicode support would be nice also.

Thanks!

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 13:34

    strtod (or wcstod) will convert strings to a double-precision value.

    (Requires or )

提交回复
热议问题