【发布时间】:2010-10-06 05:04:36
【问题描述】:
当我在 VS2008 中打开一个 VC6 项目并尝试构建它时,最初我得到了错误:
致命错误 C1083:无法打开包含文件:'iostream.h':没有这样的文件或目录
错误 C2259:“CException”:无法实例化抽象类
错误 BK1506 : 无法打开文件 '.\Debug\SClientDlg.sbr': 没有这样的文件或目录 BSCMAKE SClient
现在我已将 #include"iostream.h" 更改为 #include"iostream" 并且现在收到 7 个错误(因为我使用了 try and catch 7 个位置)说:
错误 C2259:“CException”:无法实例化抽象类
以下是该代码的 sn-p:
void SClientDlg::ProcessDomainName(int *m_pDlg,char* strDomainName,int iLen)
{
try
{
//Do Something
}
catch(CException ex)
{
printf("Exception: %d",GetLastError());
}
}
【问题讨论】:
标签: c++ windows exception mfc cexception