https://wenku.baidu.com/view/826b3d426bec0975f565e204.html…
string.Format("select * from 数据库表 where 用户名='%s' and 密码='%s' ",m_1,m_2); 把[m_1]和[m_2]的值按照[%s]的格式传给字符串[select * from 数据库表 where 用户名='%s' and 密码='%s' ]. 比如:m_1=张三,m_2='abc' 那么出来的结果就是:[select * from 数据库表 where 用户名='张三' and 密码='abc']…
一: 编译程序的时候设置一下 在项目属性--连接器--清单文件--UAC执行级别改为requireAdministrator 二: void GainAdminPrivileges(CString strApp, UINT idd) { CString strCmd; strCmd.Format (_T("/adminoption %d"), idd); SHELLEXECUTEINFO execinfo; memset(&execinfo, 0, sizeof(execinf…
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq; using System.Net.Mail; using System.Net.Sockets; using System.Security.Cryptography; using Syste…
private string constring="data source=112.74.73.122;initial catalog=qzyData;user id=sa;password=luoli121456"; //18经度 //19纬度 private string FindUserMobilephone( ) { string strCmd; string phone = ""; strCmd = "select * from QZY_site…
Set up the Workbook In this example, there are two tables -- Raw Materials and Packaging -- and each table is on a separate worksheet. The Raw Materials table is on the sheet named Materials, and the Packaging table is on the sheet named Packaging. T…
一,ALT+TAB切换时小图标的添加 Dlg类中添加变量 protected: HICON m_hIcon; #define IDR_MAINFRAME 128 ICON IDR_MAINFRAME,IDC_STATIC,,,, // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDR_MAINFRAME ICON DISCARDAB…
回到目录 LogParser是微软开发的一个日志分析工具,它是命令行格式的,我们通过这个工具,可以对日志文件进行操作,对于一个几百兆的log文件,使用记事本打开是件很残酷的事,所以,很多情况下,我们都会将大日志文件的内容插入到数据库中,这样有利于我们更好的去分析系统的日志. 脚本中心给它的定义 Log Parser 2.2 是一个功能强大的通用工具,它可对基于文本的数据(如日志文件.XML 文件和 CSV 文件)以及 Windows 操作系统上的重要数据源(如事件日志.注册表.文件系统和 Act…
'当前文件夹路径 server.MapPath("./") '网站根目录 server.MapPath("/") Dim strZipFolder ' 待压缩的文件夹 Dim strRarFile ' 生成的压缩文件名 Dim strUnZipFolder ' 解压文件夹 Dim strCmd ' 命令行 strZipFolder = Server.MapPath("./") & "\1.txt" strRarFile…
例一: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.U…