-
第一个VC++ 6.0的ADO编程示例(非ADO控件编程!)
环境:Windows XP SP3、VC++ 6.0、Windows 2003 Server SDK、MS SQL Server 2000
使用步骤:
1、下载解压之后,先运行工程目录中的上课教学For SQL Server.sql脚本,在数据库中创建所需要的表
2、注意:如果你的Windows系统安装的目录不在C盘,那么需要使用IDE打开StdAfx.h中的#import "C:Program FilesCommon FilesSystemadomsado15.dll" no_namespace rename("EOF","adoEOF")语句,然后修改成你机器器中的位置
3、修改CFirstADOApp类中的InitInstance方法中的m_pConnection->Open("Driver=SQL Server;Database=bbs;Server=127.0.0.1;UID=sa;PWD=sa;","","",adModeUnknown);根据你机器上的数据库位置、数据库的用户名、密码来修改
4、然后点击“!”按钮运行程序,如果一切正常,那么可以看对话框中显示数据库表description的信息
5、修改CFirstADODlg类的OnInitDialog方法中的_variant_t sql("select * from HouseInformation where contactor = "建翔桥"");语句,可以得到不同的查询结果
阅读对象:希望学习VC++的ADO编程,而不是ADO控件的编程的人员。。。。^_^
注:本示例注释非常详细,是学习代码编程ADO程序的好例子!
- 2023-06-19 00:15:04下载
- 积分:1
-
基于MSP430的ads1191驱动设计
基于MPS430的ads1191驱动设计,包括寄存器初始化,陷波器等滤波器设计
- 2022-11-08 11:25:03下载
- 积分:1
-
uart 读写
用于rs232,uart的读写接口代码。linux下亲测试可用。
- 2023-03-09 10:00:03下载
- 积分:1
-
对于学习很有帮助,我个人也很喜欢。大家有什么问题的也可以交流反馈一下。...
对于学习很有帮助,我个人也很喜欢。大家有什么问题的也可以交流反馈一下。-Very useful for learning, I personally liked. That there is no problem you can exchange feedback.
- 2022-03-19 05:40:03下载
- 积分:1
-
超声波测距报警
利用stc89c51设计超神波测距,达到一定距离会报警,显示到数码管上,还可以通过按键设置距离上限
- 2022-08-22 00:07:46下载
- 积分:1
-
VC6.0搭建OpenGL绘制小茶壶
通过VC6.0配置OpenGL环境实现图形绘制,简单高效;可以避免过多的繁复步骤,具有借鉴意义
- 2022-01-22 12:48:40下载
- 积分:1
-
飞思卡尔小车
PDDR :数据方向寄存器PDOR :数据输出寄存器PDIR :数据输入寄存器PSOR :输出置位寄存器(set 写1好使)PCOR : 输出清位寄存器(clear 写1好使)PTOR :输出取反寄存器 ( 写1好使)
- 2022-08-05 09:57:08下载
- 积分:1
-
查找并删除某个同学的姓名。例如:输入的同学姓名分别为:Li Fang , Wang Li , Xiao hanxiong , Feng Lei , Fu Xia...
查找并删除某个同学的姓名。例如:输入的同学姓名分别为:Li Fang , Wang Li , Xiao hanxiong , Feng Lei , Fu Xiaoxiao ,要查找并删除的同学的姓名为:Feng Lei. 则删除后,同学姓名包含有:Li Fang , Wang Li , Xiao hanxiong , Fu Xiaoxiao -Find and delete the name of a classmate. For example: Enter the names of the students were: Li Fang, Wang Li, Xiao hanxiong, Feng Lei, Fu Xiaoxiao, to search and delete the names of students for: Feng Lei. Is deleted, the names of the students have included: Li Fang, Wang Li, Xiao hanxiong, Fu Xiaoxiao
- 2023-06-16 19:40:03下载
- 积分:1
-
readdxf
#-------------------------------------------------## Project created by QtCreator 2017-11-01T09:35:55##-------------------------------------------------QT += core guigreaterThan(QT_MAJOR_VERSION, 4): QT += widgetsTARGET = read_dxfTEMPLATE = app# The following define makes your compiler emit warnings if you use# any feature of Qt which as been marked as deprecated (the exact warnings# depend on your compiler). Please consult the documentation of the# deprecated API in order to know how to port your code away from it.DEFINES += QT_DEPRECATED_WARNINGS# You can also make your code fail to compile if you use deprecated APIs.# In order to do so, uncomment the following line.# You can also select to disable deprecated APIs only up to a certain version of Qt.#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000&n
- 2022-03-17 18:02:15下载
- 积分:1
-
ARM上使用v4l2采集视频数据经过UDP发送,代码简单,逻辑清晰,下载一个M-JPEG流PC端就可以查看
ARM上使用v4l2采集视频数据经过UDP发送,代码简单,逻辑清晰,下载一个M-JPEG流PC端就可以查看,适合简单了解学习者使用。
- 2022-05-09 04:46:20下载
- 积分:1