mfc中代码运行后弹窗出现disk full when accessing +txt文件名 一般是什么错误啊?跪求高手指点
可能出了问题代码如下(仿qq登陆界面)voidCQQDlg::OnButton3(){//TODO:Addyourcontrolnotificationhandlerco...
可能出了问题代码如下(仿qq登陆界面)
void CQQDlg::OnButton3()
{
// TODO: Add your control notification handler code here
int i;
CString str1,str2;
CString ptr;
CComboBox *ccb2=(CComboBox*)GetDlgItem(IDC_COMBO1);
if (dands)
{
ccb2->GetWindowText(str1);
GetDlgItemText(IDC_EDIT1,str2);
file.Open(filename,CFile::modeReadWrite|CFile::modeNoTruncate|CFile::typeText);
file.SeekToBegin();
for (i=1;i<=budget;i++)
{ file.ReadString(ptr); }
file.WriteString("\r");
file.WriteString(str1);
file.WriteString(",");
file.WriteString(str2);
SetDlgItemText(IDC_blank,"修改信息成功");
file.Close();
}
else
{ SetDlgItemText(IDC_blank,"未登录成功"); }
} 展开
void CQQDlg::OnButton3()
{
// TODO: Add your control notification handler code here
int i;
CString str1,str2;
CString ptr;
CComboBox *ccb2=(CComboBox*)GetDlgItem(IDC_COMBO1);
if (dands)
{
ccb2->GetWindowText(str1);
GetDlgItemText(IDC_EDIT1,str2);
file.Open(filename,CFile::modeReadWrite|CFile::modeNoTruncate|CFile::typeText);
file.SeekToBegin();
for (i=1;i<=budget;i++)
{ file.ReadString(ptr); }
file.WriteString("\r");
file.WriteString(str1);
file.WriteString(",");
file.WriteString(str2);
SetDlgItemText(IDC_blank,"修改信息成功");
file.Close();
}
else
{ SetDlgItemText(IDC_blank,"未登录成功"); }
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询