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

  • stsw-stm32047
    STM32 F103RB 控制红外的,具备学习功能和发送功能(Implementing receivers for infrared remote control protocols using STM32F10xxx microcontrollers)
    2013-11-17 09:59:57下载
    积分:1
  • 60nlixitong
    说明:  VC6对sqlserver数据库的添加删除查询等相关操作,代码全部在VC编译环境下运行通过。(VC6 adds and deletes queries to SQLSERVER database and other related operations. All the code runs through the VC compiler environment.)
    2019-04-26 14:48:48下载
    积分:1
  • 校内赛比赛规则:机器人舞蹈比赛
    介绍ROBOBASIC语法及适用,主要适用于机器人程序开发及调试(This paper introduces the ROBOBASIC grammar and its application, which is mainly suitable for the development and debugging of robot programs.)
    2020-06-19 12:20:02下载
    积分:1
  • ML5238-Ver1.0
    5-16串电池管理方案,含原理图和芯片资料。具有电压测量、过充、过放、过流、均衡等功能。(5-16 string battery management solutions, including schematics and chip data. With voltage measurement, overcharge, over discharge, over current, balance and other functions.)
    2020-12-14 18:09:14下载
    积分:1
  • 2M-U-disk-on-STM32
    基于STM32的2M U盘源码,对STM32的开发很有用(2M U disk on STM32 )
    2013-11-01 00:01:45下载
    积分:1
  • 简易代码生成
    简易代码生成,C#技术,适合初学者,学习使用,不具备商业价值。下载需谨慎。简易代码生成,C#技术,适合初学者,学习使用,不具备商业价值。下载需谨慎。简易代码生成,C#技术,适合初学者,学习使用,不具备商业价值。下载需谨慎。简易代码生成,C#技术,适合初学者,学习使用,不具备商业价值。下载需谨慎。
    2023-03-26 08:20:03下载
    积分:1
  • C#经典范例50讲
    应用背景这本书里面的每个例子都很小,但是很多都是比较常用的。需要的可以看看。哈哈关键技术 本书由50讲组成,共分七大部分内容,第一部分主要讲解了C语言编程的基础知识,第二部分讲解了输入、输出以及磁盘文件系统,这两部分内容读者应着重学习,第三部分在讲解C语言图形库函数的基础上,演示了弹出式菜单、下拉式菜单和键盘绘图编程的大致方法,第四部分讲述了在Windows环境下C语言的编程风格和应用程序设计方法,第五部分在了解数据的基础知识的基础上,通过实例讲解了利用C语言来实现数据库的加密、解密操作,以及操作Foxbase等数据库文件,第六部分讲述了C语言在网络方面的应用,包括串行通讯、TCP/IP和公共网关接口(CGI),第七部分讲述了链表、栈、队列和二叉数等多种数据结构的C语言实现,C语言与汇编语言程序的接口,内存驻留程序设计的方法以及常见编译错误的中英文对照和处理方法。 本书内容丰富、新颖,实用性强,可作为初、高等院校师生学习C语言参考书,C语言培训班的首选教材,C语言爱好者的自学参考读物。
    2023-07-24 18:15:04下载
    积分:1
  • 3Dtransform
    说明:  对正立方体图形进行平移、旋转、变比、对城、错切等几何变换及平行投影和透视图等投影变换。(Graphics on the cube is translation, rotation, variable ratio, on the City, shear, such as geometric transformations and parallel projection and perspective projection transformation and so on.)
    2008-11-21 11:56:19下载
    积分:1
  • keyboard
    这个是键盘程序,通过单片机实现。工程文件可用keil打开(This is an keyboard program, through MCU. Project files can be opened keil)
    2015-02-05 12:06:42下载
    积分:1
  • ZNodes
    qt中提供了QGphicsView,QGraphicsScene,QGraphicsItem,QGraphicsPixmapItem是QGraphicsItem的子类 分辨创建它们的实例:view,scene,item,然后通过各自的方法scene->addItem(item);view->setScene(scene);就可以达到类似下图的效果,想要进一步定制,则要继承QGraphicsItem或QGraphicsPixmapItem,然后重写paint()、boundingRect()等方法,此外如果还想要获取鼠标事件,重写mousePressEvent等事件就好了,注意,一旦重写了mousePressEvent方法,就以为了qt不会再自动处理item的任何press事件了,可以在你重写的mousePressEvent方法中最后添加QGraphicsItem::mousePressEvent(event);解决这个问题,就是说你获取到了鼠标事件,但是依然让qt处理这个鼠标事件。(QGphics View, QGraphics Scene, QGraphics Item and QGraphics PixmapItem are provided in qt. They are subclasses of QGraphics Item. Resolve the instances of creating them: view, scene, item, and then use their respective methods scene - > addItem (item); view - > setScene (scene); you can achieve the effect similar to the figure below. If you want to further customize, you need to inherit QGraphics Item or QGraphics Pixmap Item, and then rewrite paint (), boundingRect () and other methods, and if you want to do so. If you want to get mouse events, rewrite events like mousePressEvent. Note that once you rewrite the mousePressEvent method, you think that QT will no longer automatically handle any press events of item. You can finally add QGraphics Item:: mousePressEvent (event) to your rewritten mousePressEvent method to solve this problem. That is, you get the mouse event, but still let QT handle the mouse event.)
    2020-06-16 20:20:01下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载