Home > Software engineering >  Abnormal CRecordset don't know where I went wrong.
Abnormal CRecordset don't know where I went wrong.

Time:10-13

Cip SQLip (& amp; TheApp. M_DB);
Cstrings STR, stripab, strip;
BOOL bRet=FALSE;
USHORT uToken;
DWORD dwIndx=1;
BYTE * pbufs=NULL;
//strip=IP;
Int posa=strip. The Find (". ");
Int posb=strip. The Find (". ", the posa + 1);
Stripab=strip. The mids (0, posb);
Strip="192.168.1.1";
Int iLen=0;

Try
{
StrSQLcmd. The Format (" select * from IP where repeatall=1 ");
if (! SQLip. Open (AFX_DB_USE_DEFAULT_TYPE strSQLcmd))
{
CBaseForm: : WriteLog (" [error] : AddUser open userList table failed ");
BRet=FALSE;
Goto _error;
}
}
The catch (CDBException * pEx)
{
PEx - & gt; ReportError ();
//pEx - & gt; The Delete ();
}

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Server
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
MFC internal error: unable to load the error string from the resource.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Sure
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

CodePudding user response:

May be a SQL error, can use ADO assistant under test SQL statements,

CodePudding user response:

No binding data sources?
  • Related