GetFields()->GetCount(); db.m_pRecordset->MoveFirst();if(totalnum<10){while(!db.m_pRecordset->adoEOF){for(longi=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-IMDN开发者社群-imdn.cn"> GetFields()->GetCount(); db.m_pRecordset->MoveFirst();if(totalnum<10){while(!db.m_pRecordset->adoEOF){for(longi=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 - IMDN开发者社群-imdn.cn">
登录
首页 » c++ » ado查询

ado查询

于 2022-06-20 发布 文件大小:21.83 MB
0 105
下载积分: 2 下载次数: 1

代码说明:

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(totalnumadoEOF) { 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • minicom
    minicom操作指南,对于学习嵌入式尤其是linux的人来说是很有用的(minicom operation guide for learning embedded Linux in particular who is a very useful)
    2006-10-29 20:44:57下载
    积分:1
  • 查表法获取正弦函数值
    通过查找const FLOAT32 SinTable[91]内的值获取正弦函数值,只需要调用FLOAT32 getFastSin(int angle)函数,输入值为角度,即可获得该角度下的正弦值。简单易用,精度还行。非常适用于不带三角函数的系统。
    2022-01-25 21:27:12下载
    积分:1
  • Q28-高精度移相资料
    高精度相依模块芯片原理图资料以及使用方法还有手册(High-precision dependency module chip schematic data and the use of manual)
    2020-06-19 04:20:01下载
    积分:1
  • 简单文本编辑器 适合初学者
    简单文本编辑器 适合初学者-simple text editor for beginners
    2022-05-16 04:13:01下载
    积分:1
  • DlgCSClient
    好东西大家共同分享啊,我这可是收藏的一点好东西啊, 好好利用和学习吧,画CDC的确(good things to share with you ah, but this collection of 1:00 ah good things that make the best use of it and learning. CDC is the Eastern painting)
    2006-11-23 10:32:42下载
    积分:1
  • optimization of wireless communication networks
    第一组涉及信道建模。本文的第一篇论文是由Zhang等人撰写的,研究了室内多层建筑的宽带传播特性环境.统计提取了室内电波传播的路径损耗模型和时间色散参数。所有这些结果都是为印度网络的部署和优化量身定做的。Jinget al.的论文通过推导极化结构的阵列响应表达式和速度垂直分量引起的多普勒频移,扩展了WINNER II/+3-D信道模型。
    2022-04-01 23:35:35下载
    积分:1
  • matlab 泰勒图绘制程序
    matlab绘制泰勒图程序包,以及绘制工具,比较详尽可抑制及使用,泰勒图简单的说就是是一种的可以表示标准差, 均方根误差和相关系数三个指标的图。比单一R2和RMSE等横纵坐标更直观。
    2019-03-20下载
    积分:1
  • sijieadangmusi
    四阶阿当姆斯预测-校正公式 - 龙格库塔方法,四阶,求解一个方程,可控精度,实现很直观,扩展性强。(Adam Williams, the fourth-order prediction- correction formula- Runge-Kutta method of fourth order, to solve an equation, control accuracy, the implementation is straightforward, and strong expansion.)
    2011-09-05 16:23:33下载
    积分:1
  • zlibwapi
    压缩 和 解压 写上传资料的详细功能、包含内容说明(Compression and Depression)
    2014-05-07 16:32:07下载
    积分:1
  • Word转pdf
    BOOL SaveAsPdf(const CString& InFileName, const CString& OutFileName){::CoInitialize(NULL);CApplication TestWordDoc;   //定义一个WORD的应用对象if(!TestWordDoc.CreateDispatch(_T("Word.Application"))) //启动WORD{
    2023-07-25 07:40:04下载
    积分:1
  • 696518资源总数
  • 105958会员总数
  • 18今日下载