编程

VC++获取控制台命令的输出结果

VC++获取控制台命令的输出结果 #include "stdafx.h" #include <Windows.h> #include <iostream> #include <string> using namespace std; BOOL ExecDosCmd(string cmd, string &outp...

C++获取windows系统分区大小及使用情况

C++使用Windows SDK获取系统分区大小以及使用情况,代码如下: // ConsoleApplication1.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include <stdint.h> #include <windows.h>...

ubuntu安装libuv

ubuntu安装libuv sudo apt-get install automake libtool curl curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/src cd /usr/local/src/libuv-1.4.2sudo s...

ado.net 连接mysql的类

ado.net 连接mysql的类: using System; using System.Collections.Generic; using System.Linq; using System.Text; using MySql.Data; using MySql.Data.MySqlClient; namespace VideoSpider { public ...

mysql求时间差

mysql求时间差 SELECT TIMESTAMPDIFF(HOUR, NOW(), '2016-01-15 12:00:00') HOUR可以是SECOND

mysql日期加减天数

mysql日期加减天数 SELECT DATE_SUB(CURDATE(), INTERVAL 7 DAY) SELECT DATE_ADD(CURDATE(), INTERVAL 7 DAY);

C#非独占加载图片

C#非独占加载图片 Image _Image = Image .FromStream(new MemoryStream(System.IO.File .ReadAllBytes(Application.StartupPath + "\\v.jpg"))); pictureBox1.Image = _Image;

C#在线程中使用Invoke来调用UI线程里的控件

C#在线程中使用Invoke来调用UI线程里的控件 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.IO; using System.Linq...

C#使用OleDB连接Access数据库

C#使用OleDB连接Access数据库的代码: public class DbHelper { static DbHelper() { connectionString = GetConnectionString(); } private static string connectionString; ...