CRecordset 异常 不知道哪里出错了。

h5529422 2016-04-26 09:48:28
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.
---------------------------
确定
---------------------------
...全文
1028 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
54gym 2016-08-04
  • 打赏
  • 举报
回复
没有绑定数据源吧?
zyq5945 2016-04-27
  • 打赏
  • 举报
回复
可能是SQL错误,可以用ADO助手测试下sql语句。

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧