-
CAA_CatalogBrowser_Example
CAA二次开发 简单示例 从对话框中按钮导入一个三维零件模型(CAA secondary development of a simple example from the button in the dialog box to import a three-dimensional part model)
- 2020-12-17 10:29:12下载
- 积分:1
-
Microsoft.VC90.CRT
MFC release版本程序运行时库。程序和库安装在同一目录,不用安装VS,程序就可以运行(MFC release version program runtime library)
- 2014-05-07 08:50:28下载
- 积分:1
-
matlab_mex_fft
matlab mex编程,fft和一些矩阵运算的C实现,linux matlab下编译(matlab mex programming, fft, and some matrix operations C implementation, compiled under linux matlab)
- 2015-03-27 14:35:04下载
- 积分:1
-
tlc5615
tlc5615数模转换,三角波,方波,锯齿波,正弦波(tlc5615 function )
- 2013-03-28 16:10:51下载
- 积分:1
-
SQLHelper连接数据库示例类
[实例简介] 连接sql数据库 类 [核心代码]using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Configuration;using System.Data.SqlClient;using System.Data; namespace Itcast.Cn{ public static class SqlHelper { private static readonly string conStr = ConfigurationManager.ConnectionStrings["connStr"].ConnectionString; //执行增删改的 public static int ExecuteNonQuery(string sql, CommandType cmdType, params SqlParameter[] pms) { using (SqlConnection con = new SqlConnection(conStr)) { using (SqlCommand cmd = new SqlCommand(sql, con)) { cmd.CommandType = cmdType; if (pms != null) { cmd.Parameters.AddRange(pms); } con.Open(); return cmd.ExecuteNonQuery(); } } } //封装一个执行返回单个值的方法 public static object ExecuteScalar(string sql, CommandType cmdType, params SqlParameter[] pms) { using (SqlConnection con = new SqlConnection(conStr)) { using (SqlCommand cmd = new SqlCommand(sql, con)) { cmd.CommandType = cmdType; if (pms != null) { cmd.Parameters.AddRange(pms); } con.Open(); return cmd.ExecuteScalar(); } } } //返回SqlDataReader对象的方法 public static SqlDataReader ExecuteReader(string sql, CommandType cmdType, params SqlParameter[] pms) { SqlConnection con = new SqlConnection(conStr); using (SqlCommand cmd = new SqlCommand(sql, con)) { cmd.CommandType = cmdType; if (pms != null) { cmd.Parameters.AddRange(pms); } try { con.Open(); return cmd.ExecuteReader(CommandBehavior.CloseConnection); } catch (Exception) { con.Close(); con.Dispose(); throw; } } } //封装一个返回DataTable的方法 public static DataTable ExecuteDataTable(string sql, CommandType cmdType, params SqlParameter[] pms) { DataTable dt = new DataTable(); using (SqlDataAdapter adapter = new SqlDataAdapter(sql, conStr)) { adapter.SelectCommand.CommandType = cmdType; if (pms != null) { adapter.SelectCommand.Parameters.AddRange(pms); } adapter.Fill(dt); } return dt; } //封装一个带事务的执行Sql语句的方法 public static void ExecuteNonQueryTran(List list) { using (SqlConnection con = new SqlConnection(conStr)) { using (SqlCommand cmd = con.CreateCommand()) { con.Open(); using (SqlTransaction trans = con.BeginTransaction()) { cmd.Transaction = trans; try { foreach (var SqlObject in list) { cmd.CommandText = SqlObject.Sql; if (SqlObject.Parameters != null) { cmd.Parameters.AddRange(SqlObject.Parameters); } cmd.CommandType = SqlObject.CmdType; cmd.ExecuteNonQuery(); cmd.Parameters.Clear(); } trans.Commit(); } catch (Exception) { trans.Rollback(); } } } } } } public class SqlAndParameter { public string Sql { get; set; } public SqlParameter[] Parameters { get; set; } public CommandType CmdType { get; set; } }}
- 2015-04-01下载
- 积分:1
-
main
利用形态学,霍夫(Hough)变换,实现畸变QR码的4个角点的定位。(To correct the distortion of the QR code,use morphology operation, Hough transform, to locat the positioning of the four corner points)
- 2012-03-14 15:17:57下载
- 积分:1
-
StudentSystem
用vc++的MFC做的学生成绩管理系统,包含数据库,用户名密码默认admin(Vc++ with the MFC student performance management system, including a , the default user name and password admin)
- 2016-12-30 20:57:31下载
- 积分:1
-
AVR单片机入门与速成攻略源码
说明: Introduction ,to, AVR ,single, chip, microcomputer, and ,quick, strategy
- 2020-04-25 17:06:50下载
- 积分:1
-
MT7620 UBOOT TF卡驱动(msdc)
MT7620 uboot中实现TF卡驱动
msdc card init....
- 2023-04-08 05:25:03下载
- 积分:1
-
CSocket
一个网络聊天的小工具,自己加了时间的功能,客户端(A network of small chat tools, increases the function of time, the client)
- 2008-12-28 21:14:52下载
- 积分:1