Convert MFC CString to integer

后端 未结 11 2138
南旧
南旧 2020-12-08 13:15

How to convert a CString object to integer in MFC.

11条回答
  •  北荒
    北荒 (楼主)
    2020-12-08 14:08

    You may use the C atoi function ( in a try / catch clause because the conversion isn't always possible) But there's nothing in the MFC classes to do it better.

提交回复
热议问题