rc == SQL_SUCCESS_WITH_INFO)
m_sFieldValue[f] = CString(szData) ;
else
m_sFieldValue[f] = "" ;
}
else
m_sFieldValue[f] = "" ;
}
return 1 ; /*执行成功,并且有数据*/
}
else if(rc == 100)
{ /*查找成功,但是没有数据*/
return 0 ;
}
}
m_sErrMsg = "" ;
while(SQLError(0,
0,
hstmt_select,
szSQLSTATE,
&nErr,
msg,
sizeof(msg),
&cbmsg) == SQL_SUCCESS )
m_sErrMsg += "\t\t" +CString(msg) + "\n" ;
SQLFreeStmt(hstmt_select,SQL_DROP) ;
hstmt_select = NULL ;
return -1 ;
}
BOOL CWdcDatabase::NextMatchingRecord()
{
unsigned char szSQLSTATE[6] ;
SDWORD nErr ;
unsigned char msg[MAX_ERROR_MSG+1] ;
SWORD cbmsg ;
char szData[MAX_DATA] ;
SDWORD cbData ;
RETCODE rc ;
if(!m_bOpen)
return FALSE ;
rc = SQLFetch(hstmt_select) ;
if(rc == SQL_SUCCESS (北联网教程,专业提供视频软件下载)
……