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

  • An_ATL_Toolbox_control_src
    类似于VS中控件工具箱的栅栏式切换的一个ActiveX源码,还不懂是什么?想想QQ的分组栏(Similar to the controls in the toolbox VS fence switching an ActiveX source, still do not know what is? Think of the QQ group column)
    2013-11-02 17:19:14下载
    积分:1
  • trajectory_example
    弹道导弹(BM)弹道仿真任务旨在获得作战行动训练和规划任务中目标探测、跟踪、射击过程仿真所需的BM样本弹道;
    2022-02-01 08:08:08下载
    积分:1
  • I2C_SSD1306_STM32(HW)
    说明:  对OLED进行显示,分别用IIC的以及SPI的来进行测试(Display OLED and test it with IIC and SPI respectively)
    2019-05-04 18:53:47下载
    积分:1
  • 一个不错的系统优化批处理程序
    说明:  体验相当不错,运用了突进模拟方式,将批处理快速增强(NICE BAT Using backhole to clear win10 cache files in one step)
    2019-10-04 02:04:40下载
    积分:1
  • zuoye
    这是一个我们平时的作业,里面的内容是关于MATLAB的,希望大家觉得有用(This is one of our normal operations, which the content is on the MATLAB, and hope you find it useful)
    2011-05-14 17:33:00下载
    积分:1
  • 超声波
    基于51单片机的超声波测距显示系统,利用超声波模块进行测距,通过数码管显示数值,代码简单,通俗易懂。(The ultrasonic ranging display system based on 51 single chip computer uses the ultrasonic module to measure the distance. The numerical value is displayed by the digital tube. The code is simple and easy to understand.)
    2020-06-22 09:00:02下载
    积分:1
  • Mathematics
    Only one month to go before the nullarbor demoparty and game development competition takes place! The event will be held at ECU Mount Lawley, School of Computer and Information Science in Perth, Western Australia on Thursday the 23rd of February 2006.
    2006-03-28 11:52:49下载
    积分:1
  • 使用单片机,可以直接点亮ST7565P COG的黑白LCD
    使用单片机,可以直接点亮ST7565P COG的黑白LCD,适合初学者
    2022-02-04 19:57:42下载
    积分:1
  • OPC服务器源码
    OPC服务器源码,可以运行,可通过标准OPC客户程序读写数据。
    2022-08-06 08:52:12下载
    积分:1
  • 数学建模
    说明:  用有限元差分发求解一维热传导,并作做出二维图线和三维温度变化图像(One dimensional heat conduction is solved by finite element difference distribution and plotted)
    2020-06-21 12:26:21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载