CRecordset 异常 不知道哪里出错了。
Cip SQLip(&theApp.m_DB);
CString str,stripab,strip;
BOOL bRet = FALSE;
USHORT uToken;
DWORD dwIndx = -1;
BYTE *pBuf = NULL;
// strip=ip;
int posa=strip.Find(".");
int posb=strip.Find(".",posa+1);
stripab=strip.Mid(0,posb);
strip="192.168.1.1";
int iLen=0;
try
{
strSQLcmd.Format("select * from ip where repeatall = 1");
if (!SQLip.Open(AFX_DB_USE_DEFAULT_TYPE,strSQLcmd))
{
CBaseForm::WriteLog("[错误]:AddUser 打开userList表失败");
bRet = FALSE;
goto _error;
}
}
catch(CDBException* pEx)
{
pEx->ReportError();
// pEx->Delete();
}
++++++++++++++++++++++++++++++++++++++++
---------------------------
Server
---------------------------
MFC internal error: unable to load error string from resource.
---------------------------
确定
---------------------------