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 122
下载积分: 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 个回复

  • DOMTREE
    DOMTree的显示,很简单但很实用,如何插入节点(DOMTree display, very simple but very practical, how to insert a node)
    2007-09-19 10:26:52下载
    积分:1
  • 12864_chsshu
    单片机控制液晶显示屏进行数据显示 液晶屏为点阵型(Single-chip LCD display control data for the character LCD display)
    2009-03-22 21:48:11下载
    积分:1
  • W681512
    W681512,华邦电子的语音编码芯片,在实际测试和使用中表现很出色。(W681512, Winbond speech coding chip, in the actual testing and use is remarkable. )
    2011-11-16 21:52:41下载
    积分:1
  • TestDosCaihuang
    临时开TELNET临时开启产测的功能,方便产线更快的作业,不需要进网页(Temporarily open TELNET temporarily open the production test function, convenient production line faster operation, do not need to enter the web page)
    2017-11-22 20:29:40下载
    积分:1
  • caozuoxitong
    操作系统综合实验报告 关于单处理器系统的进程调度的实验报告分析以及源码(Operating a comprehensive report on the experimental process of scheduling a single processor system analysis and the source of the experimental report)
    2010-01-08 18:53:47下载
    积分:1
  • LPC17xx基础例程(直接操作寄存器)
    LPC17xx基础例程,使用编译器keil mdk4.2,采用寄存器操作方式,间接明了,非常适合NXP初学者,方便开发者学习和移植
    2023-05-10 10:25:12下载
    积分:1
  • EVERT
    EVERT的开源的光柱跟踪代码。光柱跟踪是用于声学仿真的重要算法。(open source code of beam tracing)
    2011-05-13 13:02:42下载
    积分:1
  • CMA_FILTER.c.txt
    说明:  c语言实现盲均衡算法,还有cma算法的改进(The implementation of blind equalization algorithm in C language and the improvement of CMA algorithm)
    2020-06-18 03:40:01下载
    积分:1
  • C# 在大图中提取小图 例子
    大图找小图
    2015-06-10下载
    积分:1
  • link
    多项式的链表存储表示以及实现多项式的加法(Said polynomial storage list and the realization of polynomial addition)
    2009-11-02 10:08:11下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载