|
@@ -192,7 +192,16 @@ void CSetMACDlg::OnBnClickedSetVirMac()
|
|
|
std::map<CString, CString>::iterator it = _MacFactoryName.find(strText);
|
|
|
if ( it != _MacFactoryName.end() )
|
|
|
{
|
|
|
- WriteProfileString(_T("MOKAFactoryTools"), _T("VirMAC"), it->second);
|
|
|
+ if(WriteProfileString(_T("MOKAFactoryTools"), _T("VirMAC"), it->second))
|
|
|
+ {
|
|
|
+ MessageBox(_T("修正成功"), _T("提示"), MB_OK);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ CString strError;
|
|
|
+ strError.Format(_T("修改失败:%ld"), GetLastError());
|
|
|
+ MessageBox(strError, _T("提示"), MB_OK);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|