1. double data1=atof( pv->m_pGrid1->GetTextMatrix(m,j));error C2664: 'atof' : cannot convert parameter 1 from 'CString' to 'const char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called2. for(int k=0;k<datavec.size();k++)
warning C4018: '<' : signed/unsigned mismatch3.
CExtItem(LPCSTR szItemName,HICON hIcon)
{
lstrcpy(m_szItemName,szItemName);
m_hIcon = hIcon;
}
error C2664: 'lstrcpyW' : cannot convert parameter 2 from 'LPCSTR' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called2. for(int k=0;k<datavec.size();k++)
warning C4018: '<' : signed/unsigned mismatch3.
CExtItem(LPCSTR szItemName,HICON hIcon)
{
lstrcpy(m_szItemName,szItemName);
m_hIcon = hIcon;
}
error C2664: 'lstrcpyW' : cannot convert parameter 2 from 'LPCSTR' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
2 编译器检查严格了,int改为size_t
3参数改为LPCTSTR
其中字符串函数都使用中间编码形式 运行库用 _t 开头的函数
都用LPCTSTR之类的类型;