2007年3月20日 星期二

atoi

CString str;
int x;
x=atoi(str);
錯誤訊息顯示無法將CString 轉成const char*
摸半天才發現是TCHAR的問題
要改用_wtoi

沒有留言: