將字符轉換爲整數,可以使用atoi、_atoi64或atol。 int int_chage = atoi((lpcstr)ss) ; 或: CString str = "23"; UINT uint; sscanf(str, "%d", uint);
確定! 回上一頁