-
C# 建立SQL Server数据库连接的基本方法
C# 建立SQL Server数据库连接的基本方法,核心代码为:
try
{
string ConStr =//创建数据库连接字符串
@"server=WIN-GI7E47AND9RLS;user id=sa;pwd=;database=db_TomeTwo";
SqlConnection con = new SqlConnection(ConStr);//创建数据库连接对象
string SqlStr = "select * from 帐单";//创建SQL查询字符串
SqlDataAdapter ada = new SqlDataAdapter(SqlStr, con);//创建数据适配器对象
DataSet ds = new DataSet();//创建数据表
ada.Fill(ds);//填充数据集
this.dgv_Message.DataSource =//设置数据源
ds.Tables[0].DefaultView;
}
catch(Exception ex)//捕获异常
{
MessageBox.Show(ex.Message,"提示!");//弹出消息对话框
}
- 2022-07-28 04:06:36下载
- 积分:1
-
日历时钟
利用CSharp编写的一款小型软件,该软件能够显示农历日期以及十二生肖,能够显示当前系统的时间,类似于一款万年历,该软件仅供参考,不足之处希望海涵
- 2023-08-23 14:00:03下载
- 积分:1
-
AddressBook
对地址薄的初学测试,自己写的,希望对大家有所启发吧(Address book for novice test, write your own, we hope to inspire it)
- 2013-08-10 11:19:49下载
- 积分:1
-
SP1
单片机的部分程序,包括交通灯,抢答器,等等(Part of the program of the microcontroller)
- 2013-03-09 12:01:51下载
- 积分:1
-
c && traffic light
一、实验设备:凌阳开发板一块,unSPIDE 3.0.4 编译软件
二、实验目的:红灯显示时间50s,黄灯显示时间5s,绿灯显示时间50s
三、实验程序的编写
1、 首先打开unSPIDE 3.0.4 编译软件,建一个名字为miaobiao的工程
2、 新建一个c文件命名 main,输入相应的代码并保持(代码见附件)
3、 添加头文件#include "SPCE061V004.h",方法是在软件的安装目录下找到SPCE061V004.h文件,并复制到miaobiao工程文件夹下,然后把SPCE061V004.h文件添加到工程中(不填加该文件进工程会报错)。
上面两段代码在unSPIDE 3.0.4 上编译通过,在低版本软件上编译可能会出现错误
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-01-25 17:36:21下载
- 积分:1
-
Telerik RadControls for WinForms是一个全面的.NET Winforms用户界面控件套包,它拥有独特的图像矢量展示技术:旋转, 滚...
Telerik RadControls for WinForms是一个全面的.NET Winforms用户界面控件套包,它拥有独特的图像矢量展示技术:旋转, 滚动, 动画, 透明;可运行在所有支持.net 2.0的平台上(Windows XP, Windows Server 2003, Windows Vista等等);它拥有极强的WinForms程序运行性能;理想的企业级商业系统开发解决方案(支持CAB);它包含三种辅助工具,用于提高开发效率:Control Spy,Visual Style Builder和Shape Editor。-Telerik RadControls for WinForms is a comprehensive. NET Winforms Kit user interface controls, it has a unique image vector display technology: rotary, scroll, animation, transparent can run on all supported. Net 2.0 platform (Windows XP, Windows Server 2003, Windows Vista, etc.) it has a very strong operating performance WinForms procedures ideal enterprise-class business systems development solutions (support CAB) it contains three auxiliary tools, used to improve development efficiency: Control Spy, Visual Style Builder and Shape Editor.
- 2022-05-17 02:01:52下载
- 积分:1
-
Richs-Words_-STM8S-Interrupt-Handling
STM8 interrupts how to implement in separate files
- 2014-08-27 16:29:14下载
- 积分:1
-
STC12C5A60S2
STC12C5A60S2双串口通信例程,含注释。(STC12C5A60S2 Two serial communication routines, including the Notes.)
- 2014-01-13 14:29:56下载
- 积分:1
-
PFM_AlCu
说明: 利用C++编程实现相场模拟铝铜合金凝固过程(Simulation of phase field during solidification of Al - Cu alloy)
- 2020-08-24 08:48:16下载
- 积分:1
-
MultipleViewGeometryinComputerVision
计算机视觉方面非常好的一本专业书籍,英文版PDF。详细介绍了计算机视觉领域运用的射影几何射影变换理论知识,介绍了相机标定的理论和方法,还有三维重建,立体视觉等方面的基础知识,一本不可多得教材!其中书中的代码实现都可以在网上下载,推荐!(Computer vision is a very good professional books, in English PDF. Details of the use of projective geometry projective transformation of theoretical knowledge in the field of computer vision, introduces the basic knowledge of the camera calibration theory and methods, as well as three-dimensional reconstruction, three-dimensional vision, a rare textbook! The implementation of the code in the book can be downloaded from the internet, recommended!)
- 2013-05-19 09:45:08下载
- 积分:1