资 源 简 介
CString result,strsql,strcol,strColName,strtemp;
_variant_t va,partment;
CAdoDB db(TEXT("student"));
strsql.Format("%s",B.strsql);
db.ExecuteSQLSelect(strsql);
int k=0,q=0;
if(db.ResultExist())
{
int totalnum=db.GetRecCount();
strtemp.Format("%d",totalnum);
long nItemCount =db.m_pRecordset->GetFields()->GetCount();
db.m_pRecordset->MoveFirst();
if(totalnum<10)
{
while(!db.m_pRecordset->adoEOF)
{
for(long i=0;iGetFields()->GetItem(i)->GetName());
strcpy(B.AllInfo[i],db.GetRecordResult(strColName));
}
B.OperState=totalnum;//总个数
Send(&B,sizeof(B));
db.m_pRecordset->MoveNext();
}
}
else
{
while(q<10)
{
// &n